[]
        
(Showing Draft Content)

CSJ2K.j2k.io.BinaryDataInput

BinaryDataInput Interface

This interface defines the input of binary data from streams and/or files.

       <p>Byte level input (i.e., for byte, int, long, float, etc.) should always
       be byte aligned. For example, a request to read an <tt>int</tt> should
       always realign the input at the byte level.</p><p>The implementation of this interface should clearly define if multi-byte
       input data is read in little- or big-endian byte ordering (least
       significant byte first or most significant byte first, respectively).</p>
Namespace: CSJ2K.j2k.io
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public interface BinaryDataInput

Properties

Name Description
ByteOrdering

Returns the endianess (i.e., byte ordering) of the implementing class. Note that an implementing class may implement only one type of endianness or both, which would be decided at creatiuon time.

Methods

Name Description
readByte()

Should read a signed byte (i.e., 8 bit) from the input. reading, the input should be realigned at the byte level.

readDouble()

Should read an IEEE double precision (i.e., 64 bit) floating-point number from the input. Prior to reading, the input should be realigned at the byte level.

readFloat()

Should read an IEEE single precision (i.e., 32 bit) floating-point number from the input. Prior to reading, the input should be realigned at the byte level.

readInt()

Should read a signed int (i.e., 32 bit) from the input. Prior to reading, the input should be realigned at the byte level.

readLong()

Should read a signed long (i.e., 64 bit) from the input. Prior to reading, the input should be realigned at the byte level.

readShort()

Should read a signed short (i.e., 16 bit) from the input. Prior to reading, the input should be realigned at the byte level.

readUnsignedByte()

Should read an unsigned byte (i.e., 8 bit) from the input. It is returned as an int since Java does not have an unsigned byte type. Prior to reading, the input should be realigned at the byte level.

readUnsignedInt()

Should read an unsigned int (i.e., 32 bit) from the input. It is returned as a long since Java does not have an unsigned short type. Prior to reading, the input should be realigned at the byte level.

readUnsignedShort()

Should read an unsigned short (i.e., 16 bit) from the input. It is returned as an int since Java does not have an unsigned short type. Prior to reading, the input should be realigned at the byte level.

skipBytes(int)

Skips n bytes from the input. Prior to skipping, the input should be realigned at the byte level.

See Also