BigEndianReader
Overview
BigEndianReader is a class in Aspose.PSD FOSS for Java.
Inherits from: AutoCloseable.
Reads big-endian data from a stream.
This class declares 24 methods for BigEndianReader objects in Java programs.
Available methods include: BigEndianReader, close, getLength, getPosition, readByte, readBytes, readDouble, readInt16, readInt32, readInt64, readPascalString, readPascalStringAlignedTo2, and 8 additional methods.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: length, position.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
position | long | Read | Gets the position. |
length | long | Read | Gets the length. |
Methods
| Signature | Description |
|---|---|
BigEndianReader(stream: InputStream, leaveOpen: boolean) | Initializes a new instance of the BigEndianReader class. |
BigEndianReader(stream: InputStream) | Creates a new BigEndianReader instance from stream. |
seek(offset: long, origin: SeekOrigin) | Seeks to a position in the stream. |
readByte() → byte | Reads a single byte from the stream. |
readSByte() → byte | Reads a signed byte (sbyte) from the stream. |
readBytes(count: int) → byte[] | Reads a specified number of bytes from the stream. |
readInt16() → short | Reads a 16-bit signed integer in big-endian format. |
readUInt16() → int | Reads a 16-bit unsigned integer in big-endian format. |
readInt32() → int | Reads a 32-bit signed integer in big-endian format. |
readUInt32() → long | Reads a 32-bit unsigned integer in big-endian format. |
readInt64() → long | Reads a 64-bit signed integer in big-endian format. |
readUInt64() → long | Reads a 64-bit unsigned integer in big-endian format. |
readSingle() → float | Reads a 32-bit floating-point number in big-endian format. |
readDouble() → double | Reads a 64-bit floating-point number in big-endian format. |
readPascalString(maxLength: int) → String | Reads a PSD Pascal string whose length byte and payload are padded to a 4-byte boundary. |
readPascalString() → String | Calls readPascalString on this BigEndianReader instance. |
readPascalStringAlignedTo2(maxLength: int) → String | Reads a PSD resource Pascal string whose length byte and payload are padded to a 2-byte boundary. |
readPascalStringAlignedTo2() → String | Calls readPascalStringAlignedTo2 on this BigEndianReader instance. |
readPascalStringAlignedTo4(maxLength: int) → String | Reads a PSD layer Pascal string whose length byte and payload are padded to a 4-byte boundary. |
readPascalStringAlignedTo4() → String | Calls readPascalStringAlignedTo4 on this BigEndianReader instance. |
skip(count: int) | Skips the specified number of bytes in the stream. |
close() | Releases the stream resources. |
getPosition() → long | Returns the position. |
getLength() → long | Returns the length. |