A file input stream is an input stream for reading data from a File or from a FileDescriptor.
Functions


void java_io_FileInputStream_open(struct Hjava_io_FileInputStream* this, struct Hjava_lang_String* name)
Open a file for input.
Arguments
- struct Hjava_io_FileInputStream* this
Reference to the current (this) object.
- struct Hjava_lang_String* name
Name of the file to be opened.

void java_io_FileInputStream_close(struct Hjava_io_FileInputStream* this)
Close file.
Arguments
- struct Hjava_io_FileInputStream* this
Reference to the current (this) object.

jint java_io_FileInputStream_readBytes(struct Hjava_io_FileInputStream* fh, HArrayOfByte* bytes, jint off, jint len)
Read in bytes.
Arguments
- struct Hjava_io_FileInputStream* fh
Stream to read from.
- HArrayOfByte* bytes
Array of bytes to be filled with read data.
- jint off
Offset.
- jint len
Length.
Return value
- Number of bytes read, -1 in case of error.

jint java_io_FileInputStream_read(struct Hjava_io_FileInputStream* fh)
Read a single byte.
Arguments
- struct Hjava_io_FileInputStream* fh
Stream to read from.
Return value
- Byte read, -1 in case of error.

jlong java_io_FileInputStream_skip(struct Hjava_io_FileInputStream* fh, jlong off)
Skip forward in stream.
Arguments
- struct Hjava_io_FileInputStream* fh
Stream to skip forward in.
- jlong off
Offset.
Return value
- Number of bytes read skipped.

jint java_io_FileInputStream_available(struct Hjava_io_FileInputStream* fh)
Return the number of bytes available to read without blocking.
Arguments
- struct Hjava_io_FileInputStream* fh
Stream to read from.
Return value
- Number of bytes available to read without blocking.
File generated from "FileInputStream.c" by autodoc. 20-03-1998 12:54