ISRandomAccessIO Class Members
In This Topic
The following tables list the members exposed by ISRandomAccessIO.
Public Constructors
Public Properties
| Name | Description |
| ByteOrdering | Returns the endianess (i.e., byte ordering) of multi-byte I/O operations. Always EndianType.BIG_ENDIAN since this class implements only big-endian. |
| Pos | Returns the current position in the stream, which is the position from where the next byte of data would be read. The first byte in the stream is in position 0. |
Top
Public Methods
| Name | Description |
| close | Closes this object for reading as well as the wrapped InputStream, if not already closed. The memory used by the cache is released. |
| flush | Does nothing since this class does not implement data output. |
| length | Returns the length of the stream. This will cause all the data to be read. This method will block until all the data is read, which can be lengthy across the network. |
| read | |
| readByte | Reads a byte of data from the stream. |
| readDouble | Reads an IEEE double precision (i.e., 64 bit) floating-point number from the input. |
| readFloat | Reads an IEEE single precision (i.e., 32 bit) floating-point number from the input. |
| readFully | Reads 'len' bytes of data from this file into an array of bytes. This method reads repeatedly from the stream until all the bytes are read. This method blocks until all the bytes are read, the end of the stream is detected, or an exception is thrown. |
| readInt | Reads a signed int (32 bit) from the input. |
| readLong | Reads a signed long (64 bit) from the input. |
| readShort | Reads a signed short (16 bit) from the input. |
| readUnsignedByte | Reads an unsigned byte (8 bit) from the input. |
| readUnsignedInt | Reads a unsigned int (32 bit) from the input. |
| readUnsignedShort | Reads an unsigned short (16 bit) from the input. |
| seek | Moves the current position for the next read operation to offset. The offset is measured from the beginning of the stream. If the offset is set beyond the currently cached data, the missing data will be read only when a read operation is performed. Setting the offset beyond the end of the data will cause an EOFException only if the data length is currently known, otherwise an IOException will occur when a read operation is attempted at that position. |
| skipBytes | Skips 'n' bytes from the input. |
| write | Throws an IOException since this class does not implement data output. |
| writeByte | Throws an IOException since this class does not implement data output. |
| writeDouble | Throws an IOException since this class does not implement data output. |
| writeFloat | Throws an IOException since this class does not implement data output. |
| writeInt | Throws an IOException since this class does not implement data output. |
| writeLong | Throws an IOException since this class does not implement data output. |
| writeShort | Throws an IOException since this class does not implement data output. |
Top
See Also