#include <rtstreams.h>
Inheritance diagram for lrt::FileInputStream:

Public Methods | |
| FileInputStream (const File &file, bool textMode) | |
Creates a FileInputStream from the file denoted by the given file descriptor file. More... | |
| FileInputStream (const String &fileName, bool textMode) | |
Creates a FileInputStream from the file given by its file name fileName. More... | |
| virtual bool | markSupported () |
| virtual void | mark () |
| Marks the current position in the stream for later returning to it. | |
| virtual void | reset () |
| Resets the current position to the previously marked one. More... | |
| virtual int | read () |
| Reads one byte from the file. More... | |
| virtual bool | eos () |
| Checks if this file's end has been reached. More... | |
| virtual void | close () |
| Closes the file. | |
| virtual | ~FileInputStream () |
Marking and resetting positions is always supported by such streams.
|
||||||||||||
|
Creates a FileInputStream from the file denoted by the given file descriptor
|
|
||||||||||||
|
Creates a FileInputStream from the file given by its file name
Note that you should always separate paths with forward slashes ' |
|
|
Checks if this file's end has been reached.
Implements lrt::InputStream. |
|
|
Reimplemented from lrt::InputStream. |
|
|
Reads one byte from the file.
Implements lrt::InputStream. |
|
|
Resets the current position to the previously marked one. If no position was marked before, the position is reset to the beginning of the file. Reimplemented from lrt::InputStream. |