[]
        
(Showing Draft Content)

CSJ2K.j2k.io.BEBufferedRandomAccessFile.-ctor

BEBufferedRandomAccessFile Constructor

BEBufferedRandomAccessFile(object, string, int)

Constructor. Always needs a size for the buffer.

Declaration
public BEBufferedRandomAccessFile(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

BEBufferedRandomAccessFile(object, string)

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

Declaration
public BEBufferedRandomAccessFile(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).

BEBufferedRandomAccessFile(string, string, int)

Constructor. Always needs a size for the buffer.

Declaration
public BEBufferedRandomAccessFile(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

BEBufferedRandomAccessFile(string, string)

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

Declaration
public BEBufferedRandomAccessFile(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).