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