Public Member Functions | |
FileInputStream (const LogString &filename) | |
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system. | |
FileInputStream (const logchar *filename) | |
FileInputStream (const File &aFile) | |
Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system. | |
virtual | ~FileInputStream () |
virtual void | close () |
Closes this file input stream and releases any system resources associated with the stream. | |
virtual int | read (ByteBuffer &buf) |
Reads a sequence of bytes into the given buffer. |
FileInputStream | ( | const LogString & | filename | ) |
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.
filename | The system-dependent file name. |
FileInputStream | ( | const logchar * | filename | ) |
FileInputStream | ( | const File & | aFile | ) |
Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system.
aFile | The file to be opened for reading. |
virtual ~FileInputStream | ( | ) | [virtual] |
virtual void close | ( | ) | [virtual] |
Closes this file input stream and releases any system resources associated with the stream.
Implements InputStream.
virtual int read | ( | ByteBuffer & | buf | ) | [virtual] |
Reads a sequence of bytes into the given buffer.
buf | The buffer into which bytes are to be transferred. |
Implements InputStream.