BufferedRandomAccessFile Class Members
In This Topic
The following tables list the members exposed by BufferedRandomAccessFile.
Public 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 creation time. |
| Pos | Returns the current offset in the file |
Top
Public Methods
| Name | Description |
| close | Closes the buffered random access file |
| 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. |
| length | Returns the current length of the stream, in bytes, taking into account any buffering. |
| read | |
| readByte | Reads an unsigned byte of data from the stream. Prior to reading, the stream is realigned at the byte level. |
| readDouble | |
| readFloat | |
| 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. |
| readInt | |
| readLong | |
| readShort | |
| readUnsignedByte | |
| readUnsignedInt | |
| readUnsignedShort | |
| 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. |
| skipBytes | Skips n bytes from the input. Prior to skipping, the input should be realigned at the byte level. |
| ToString | Returns a string of information about the file |
| write | Overloaded. Writes a byte to the stream. Prior to writing, the stream is realigned at the byte level. |
| writeByte | |
| writeDouble | |
| writeFloat | |
| writeInt | |
| writeLong | |
| writeShort | |
Top
See Also