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

NameTypeAccessDescription
positionlongReadGets the position.
lengthlongReadGets the length.

Methods

SignatureDescription
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() → byteReads a single byte from the stream.
readSByte() → byteReads a signed byte (sbyte) from the stream.
readBytes(count: int) → byte[]Reads a specified number of bytes from the stream.
readInt16() → shortReads a 16-bit signed integer in big-endian format.
readUInt16() → intReads a 16-bit unsigned integer in big-endian format.
readInt32() → intReads a 32-bit signed integer in big-endian format.
readUInt32() → longReads a 32-bit unsigned integer in big-endian format.
readInt64() → longReads a 64-bit signed integer in big-endian format.
readUInt64() → longReads a 64-bit unsigned integer in big-endian format.
readSingle() → floatReads a 32-bit floating-point number in big-endian format.
readDouble() → doubleReads a 64-bit floating-point number in big-endian format.
readPascalString(maxLength: int) → StringReads a PSD Pascal string whose length byte and payload are padded to a 4-byte boundary.
readPascalString() → StringCalls readPascalString on this BigEndianReader instance.
readPascalStringAlignedTo2(maxLength: int) → StringReads a PSD resource Pascal string whose length byte and payload are padded to a 2-byte boundary.
readPascalStringAlignedTo2() → StringCalls readPascalStringAlignedTo2 on this BigEndianReader instance.
readPascalStringAlignedTo4(maxLength: int) → StringReads a PSD layer Pascal string whose length byte and payload are padded to a 4-byte boundary.
readPascalStringAlignedTo4() → StringCalls readPascalStringAlignedTo4 on this BigEndianReader instance.
skip(count: int)Skips the specified number of bytes in the stream.
close()Releases the stream resources.
getPosition() → longReturns the position.
getLength() → longReturns the length.

See Also