Inheritance diagram for stdbase::io::FileInputStream::

Public Methods | |
| virtual int | available () throw (IOException) |
| Get the number of bytes that can be read or skipped before the next read would block. | |
| virtual void | close () throw (IOException) |
| Closes the stream and releases any resources. | |
| virtual void | mark (int readlimit) |
| Marks the current position in the input stream incase the caller need return to this point - done by calling reset(). More... | |
| virtual void | reset () throw (IOException) |
| Returns the caller to a previously marked position in the input stream (if supported). More... | |
| virtual bool | markSupported () |
| Test to see whether the FileInputStream implementation supports the mark()/reset() methods. | |
| virtual int | read (byte buffer[], int len) throw (IOException) |
| Read a buffer of bytes - NEEDS Array. | |
| virtual int | read () throw (IOException) |
| Read a single byte from the stream and return it as an integer. More... | |
| virtual long | skip (long n) throw (IOException) |
| Skip the next n bytes from the input stream. More... | |
Static Public Methods | |
| system::reference< FileInputStream > | create (system::StringRef name) |
| Creates a FileInputStream when given a file name as a String object. | |
| system::reference< FileInputStream > | create (const system::platform::FileDescriptor &fd) |
| Create a FileInputStream given a FileDescriptor object. | |
Protected Methods | |
| FileInputStream (::stdbase::system::StringRef name) | |
| Constructor taking a filename as a StringRef. More... | |
| FileInputStream (const::stdbase::system::platform::FileDescriptor &fd) | |
| Constructor taking an open file descriptor for reading - most typically for stdin. | |
| virtual | ~FileInputStream () |
| Destructor. | |
Definition at line 51 of file FileInputStream.
|
|
Constructor taking a filename as a StringRef. Attempts to open the file for reading. Definition at line 240 of file FileInputStream.cpp. Referenced by create().
|
|
|
Marks the current position in the input stream incase the caller need return to this point - done by calling reset().
Reimplemented from stdbase::io::InputStream. Definition at line 85 of file FileInputStream.cpp. |
|
|
Read a single byte from the stream and return it as an integer.
Reimplemented from stdbase::io::InputStream. Definition at line 173 of file FileInputStream.cpp. |
|
|
Returns the caller to a previously marked position in the input stream (if supported).
Reimplemented from stdbase::io::InputStream. Definition at line 90 of file FileInputStream.cpp. |
|
|
Skip the next n bytes from the input stream.
Reimplemented from stdbase::io::InputStream. Definition at line 208 of file FileInputStream.cpp. |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001