[]
        
(Showing Draft Content)

CSJ2K.j2k.io.BufferedRandomAccessFile.-ctor

BufferedRandomAccessFile Constructor

BufferedRandomAccessFile(object, string, int)

Constructor. Always needs a size for the buffer.

Declaration
protected BufferedRandomAccessFile(object file, string mode, int bufferSize)
Parameters
Type Name Description
object file

The file associated with the buffer

string mode

"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).

int bufferSize

The number of bytes to buffer

BufferedRandomAccessFile(object, string)

Constructor. Uses the default value for the byte-buffer size (512 bytes).

Declaration
protected BufferedRandomAccessFile(object file, string mode)
Parameters
Type Name Description
object file

The file associated with the buffer

string mode

"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).

BufferedRandomAccessFile(string, string, int)

Constructor. Always needs a size for the buffer.

Declaration
protected BufferedRandomAccessFile(string name, string mode, int bufferSize)
Parameters
Type Name Description
string name

The name of the file associated with the buffer

string mode

"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).

int bufferSize

The number of bytes to buffer

BufferedRandomAccessFile(string, string)

Constructor. Uses the default value for the byte-buffer size (512 bytes).

Declaration
protected BufferedRandomAccessFile(string name, string mode)
Parameters
Type Name Description
string name

The name of the file associated with the buffer

string mode

"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).