[]
This class defines a Buffered Random Access File, where all I/O is considered to be big-endian. It extends the BufferedRandomAccessFile class.
public class BEBufferedRandomAccessFile : BufferedRandomAccessFile, RandomAccessIO, BinaryDataInput, BinaryDataOutput, EndianType
Name | Description |
---|---|
BEBufferedRandomAccessFile(object, string) | Constructor. Uses the default value for the byte-buffer size (512 bytes). |
BEBufferedRandomAccessFile(object, string, int) | Constructor. Always needs a size for the buffer. |
BEBufferedRandomAccessFile(string, string) | Constructor. Uses the default value for the byte-buffer size (512 bytes). |
BEBufferedRandomAccessFile(string, string, int) | Constructor. Always needs a size for the buffer. |
Name | Description |
---|---|
ToString() | Returns a string of information about the file and the endianess |
readDouble() | 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() | 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. |
readInt() | Reads a signed int (i.e., 32 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
readLong() | Reads a signed long (i.e., 64 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
readShort() | Reads a signed short (i.e. 16 bit) from the input. Prior to reading, the input should be realigned at the byte level. |
readUnsignedInt() | 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() | 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. |
writeDouble(double) | 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(float) | 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(int) | 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(long) | 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(int) | 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.
|