BEBufferedRandomAccessFile Class Members
In This Topic
The following tables list the members exposed by BEBufferedRandomAccessFile.
Public Constructors
Public Properties
Public Methods
| Name | Description |
| close | Closes the buffered random access file (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| flush | Any data that has been buffered must be written (including buffering at the bit level), and the stream should be realigned at the byte level. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| length | Returns the current length of the stream, in bytes, taking into account any buffering. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| read | (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| readByte | Reads an unsigned byte of data from the stream. Prior to reading, the stream is realigned at the byte level. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| readDouble | Overridden. Reads 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 | Overridden. Reads 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. |
| readFully | Reads up to 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. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| readInt | Overridden. Reads a signed int (i.e., 32 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
| readLong | Overridden. Reads a signed long (i.e., 64 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
| readShort | Overridden. Reads a signed short (i.e. 16 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
| readUnsignedByte | (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| readUnsignedInt | Overridden. Reads 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 | Overridden. Reads 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. |
| seek | Moves the current position to the given offset at which the next read or write occurs. The offset is measured from the beginning of the stream. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| skipBytes | Skips n bytes from the input. Prior to skipping, the input should be realigned at the byte level. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| ToString | Overridden. Returns a string of information about the file and the endianess |
| write | Overloaded. Writes a byte to the stream. Prior to writing, the stream is realigned at the byte level. (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| writeByte | (Inherited from CSJ2K.j2k.io.BufferedRandomAccessFile) |
| writeDouble | Overridden. Writes the IEEE double value v (i.e., 64 bits) to the output. Prior to writing, the output should be realigned at the byte level. |
| writeFloat | Overridden. Writes the IEEE float value v (i.e., 32 bits) to the output. Prior to writing, the output should be realigned at the byte level. |
| writeInt | Overridden. Writes the int value of v (i.e., the 32 bits) to the output. Prior to writing, the output should be realigned at the byte level. |
| writeLong | Overridden. Writes the long value of v (i.e., the 64 bits) to the output. Prior to writing, the output should be realigned at the byte level. |
| writeShort | Overridden. Writes the short value of v (i.e., 16 least significant bits) to the output. Prior to writing, the output should be realigned at the byte level.
Signed or unsigned data can be written. To write a signed value just pass the short value as an argument. To write unsigned data pass the int value as an argument (it will be automatically casted, and only the 16 least significant bits will be written). |
Top
See Also