Instances of this class support both reading and writing to a random access file.
Functions
- void java_io_RandomAccessFile_open(struct Hjava_io_RandomAccessFile* this, struct Hjava_lang_String* name, jbool rw)
- jlong java_io_RandomAccessFile_length(struct Hjava_io_RandomAccessFile* this)
- void java_io_RandomAccessFile_seek(struct Hjava_io_RandomAccessFile* this, jlong pos)
- jint java_io_RandomAccessFile_readBytes(struct Hjava_io_RandomAccessFile* this, HArrayOfByte* bytes, jint off, jint len)
- jint java_io_RandomAccessFile_read(struct Hjava_io_RandomAccessFile* this)
- void java_io_RandomAccessFile_write(struct Hjava_io_RandomAccessFile* this, jint data)
- void java_io_RandomAccessFile_writeBytes(struct Hjava_io_RandomAccessFile* this, HArrayOfByte* bytes, jint off, jint len)
- jlong java_io_RandomAccessFile_getFilePointer(struct Hjava_io_RandomAccessFile* this)
- void java_io_RandomAccessFile_close(struct Hjava_io_RandomAccessFile* this)


void java_io_RandomAccessFile_open(struct Hjava_io_RandomAccessFile* this, struct Hjava_lang_String* name, jbool rw)
Open a file for random access.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
- struct Hjava_lang_String* name
Name of the file to be opened.
- jbool rw
Open for reading or writing?

jlong java_io_RandomAccessFile_length(struct Hjava_io_RandomAccessFile* this)
Return length of file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.

void java_io_RandomAccessFile_seek(struct Hjava_io_RandomAccessFile* this, jlong pos)
Seek into file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
- jlong pos
Position.

jint java_io_RandomAccessFile_readBytes(struct Hjava_io_RandomAccessFile* this, HArrayOfByte* bytes, jint off, jint len)
Read in bytes from file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
- HArrayOfByte* bytes
Reference to an array of bytes where to store read data to.
- jint off
Offset.
- jint len
Length
Return value
- Number of bytes read, -1 in case of error.

jint java_io_RandomAccessFile_read(struct Hjava_io_RandomAccessFile* this)
Read a byte from file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
Return value
- Byte read, -1 in case of error.

void java_io_RandomAccessFile_write(struct Hjava_io_RandomAccessFile* this, jint data)
Write a byte to file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
Return value

void java_io_RandomAccessFile_writeBytes(struct Hjava_io_RandomAccessFile* this, HArrayOfByte* bytes, jint off, jint len)
Write a number of bytes to file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
- HArrayOfByte* bytes
Reference to the array of bytes to be written.
- jint off
Offset.
- jint len
Length.

jlong java_io_RandomAccessFile_getFilePointer(struct Hjava_io_RandomAccessFile* this)
Get current file position.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
Return value

void java_io_RandomAccessFile_close(struct Hjava_io_RandomAccessFile* this)
Close file.
Arguments
- struct Hjava_io_RandomAccessFile* this
Reference to the current (this) object.
File generated from "RandomAccessFile.c" by autodoc. 20-03-1998 12:54