Property | Type | Description | |
---|---|---|---|
byteBuffer | byte[] | ||
byteBufferChanged | bool | ||
byte_Ordering | int | ||
isEOFInBuffer | bool | ||
maxByte | int | ||
offset | int | ||
position | int |
Method | Description | |
---|---|---|
ToString ( ) : System.String |
Returns a string of information about the file
|
|
close ( ) : void |
Closes the buffered random access file
|
|
flush ( ) : void |
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 ( ) : int |
Returns the current length of the stream, in bytes, taking into account any buffering.
|
|
read ( ) : byte | ||
readByte ( ) : byte |
Reads an unsigned byte of data from the stream. Prior to reading, the stream is realigned at the byte level.
|
|
readDouble ( ) : double | ||
readFloat ( ) : float | ||
readFully ( byte b, int off, int len ) : void |
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 ( ) : int | ||
readLong ( ) : long | ||
readShort ( ) : short | ||
readUnsignedByte ( ) : byte | ||
readUnsignedInt ( ) : long | ||
readUnsignedShort ( ) : int | ||
seek ( int off ) : void |
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 ( int n ) : int |
Skips n bytes from the input. Prior to skipping, the input should be realigned at the byte level.
|
|
write ( byte b ) : void |
Writes a byte to the stream. Prior to writing, the stream is realigned at the byte level.
|
|
write ( byte b, int offset, int length ) : void |
Writes aan array of bytes to the stream. Prior to writing, the stream is realigned at the byte level.
|
|
write ( int b ) : void |
Writes a byte to the stream. Prior to writing, the stream is realigned at the byte level.
|
|
writeByte ( int v ) : void |
Writes the byte value of v (i.e., 8 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 byte value as an argument. To write unsigned data pass the int value as an argument (it will be automatically casted, and only the 8 least significant bits will be written).
|
|
writeDouble ( double param1 ) : void | ||
writeFloat ( float param1 ) : void | ||
writeInt ( int param1 ) : void | ||
writeLong ( long param1 ) : void | ||
writeShort ( int param1 ) : void |
Method | Description | |
---|---|---|
BufferedRandomAccessFile ( IFileInfo file, System mode ) : System |
Constructor. Uses the default value for the byte-buffer size (512 bytes).
|
|
BufferedRandomAccessFile ( IFileInfo file, System mode, int bufferSize ) : System |
Constructor. Always needs a size for the buffer.
|
|
BufferedRandomAccessFile ( System.Stream stream, bool isReadOnly ) : System |
Constructor. Uses the default value for the byte-buffer size (512 bytes).
|
|
BufferedRandomAccessFile ( System.Stream stream, bool isReadOnly, int bufferSize ) : System |
Constructor. Always needs a size for the buffer.
|
|
BufferedRandomAccessFile ( System name, System mode ) : System |
Constructor. Uses the default value for the byte-buffer size (512 bytes).
|
|
BufferedRandomAccessFile ( System name, System mode, int bufferSize ) : System |
Constructor. Always needs a size for the buffer.
|
|
readNewBuffer ( int off ) : void |
Reads a new buffer from the file. If there has been any changes made since the buffer was read, the buffer is first written to the file.
|
protected BufferedRandomAccessFile ( IFileInfo file, System mode ) : System | ||
file | IFileInfo | The file associated with the buffer /// /// |
mode | System | "r" for read, "rw" or "rw+" for read and write mode /// ("rw+" opens the file for update whereas "rw" removes /// it before. So the 2 modes are different only if the /// file already exists). /// /// |
return | System |
protected BufferedRandomAccessFile ( IFileInfo file, System mode, int bufferSize ) : System | ||
file | IFileInfo | The file associated with the buffer /// /// |
mode | System | "r" for read, "rw" or "rw+" for read and write mode ("rw+" /// opens the file for update whereas "rw" removes it /// before. So the 2 modes are different only if the file /// already exists). /// /// |
bufferSize | int | The number of bytes to buffer /// /// |
return | System |
protected BufferedRandomAccessFile ( System.Stream stream, bool isReadOnly ) : System | ||
stream | System.Stream | The stream associated with the buffer /// /// |
isReadOnly | bool | Indicates whether file is read-only or not. |
return | System |
protected BufferedRandomAccessFile ( System.Stream stream, bool isReadOnly, int bufferSize ) : System | ||
stream | System.Stream | The stream associated with the buffer /// /// |
isReadOnly | bool | Indicates whether file is read-only or not. |
bufferSize | int | The number of bytes to buffer /// /// |
return | System |
protected BufferedRandomAccessFile ( System name, System mode ) : System | ||
name | System | The name of the file associated with the buffer /// /// |
mode | System | "r" for read, "rw" or "rw+" for read and write mode /// ("rw+" opens the file for update whereas "rw" removes /// it before. So the 2 modes are different only if the /// file already exists). /// /// |
return | System |
protected BufferedRandomAccessFile ( System name, System mode, int bufferSize ) : System | ||
name | System | The name of the file associated with the buffer /// /// |
mode | System | "r" for read, "rw" or "rw+" for read and write mode /// ("rw+" opens the file for update whereas "rw" removes /// it before. So the 2 modes are different only if the /// file already exists). /// /// |
bufferSize | int | The number of bytes to buffer /// /// |
return | System |
public readFully ( byte b, int off, int len ) : void | ||
b | byte | The buffer into which the data is to be read. It must be long /// enough. /// /// |
off | int | The index in 'b' where to place the first byte read. /// /// |
len | int | The number of bytes to read. /// /// |
return | void |
protected readNewBuffer ( int off ) : void | ||
off | int | The offset where to move to. /// /// |
return | void |
public seek ( int off ) : void | ||
off | int | The offset where to move to. /// /// |
return | void |
public skipBytes ( int n ) : int | ||
n | int | The number of bytes to skip /// /// |
return | int |
public write ( byte b, int offset, int length ) : void | ||
b | byte | The array of bytes to write. /// /// |
offset | int | The first byte in b to write /// /// |
length | int | The number of bytes from b to write /// /// |
return | void |
public write ( int b ) : void | ||
b | int | The byte to write. The lower 8 bits of b are /// written. /// /// |
return | void |
public writeByte ( int v ) : void | ||
v | int | The value to write to the output /// /// |
return | void |
public abstract writeDouble ( double param1 ) : void | ||
param1 | double | |
return | void |
public abstract writeFloat ( float param1 ) : void | ||
param1 | float | |
return | void |
public abstract writeInt ( int param1 ) : void | ||
param1 | int | |
return | void |
public abstract writeLong ( long param1 ) : void | ||
param1 | long | |
return | void |
public abstract writeShort ( int param1 ) : void | ||
param1 | int | |
return | void |