|
Qore Programming Language Reference Manual
0.8.12.3
|
This class implements the InputStream interface for reading bytes from a file. More...

Public Member Functions | |
| constructor (string fileName, timeout timeout_ms=-1) | |
| Creates the FileInputStream by opening a file. More... | |
| *binary | read (int limit) |
| Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream. More... | |
Public Member Functions inherited from Qore::InputStream | |
| constructor () | |
| Constructor. More... | |
This class implements the InputStream interface for reading bytes from a file.
| Qore::FileInputStream::constructor | ( | string | fileName, |
| timeout | timeout_ms = -1 |
||
| ) |
Creates the FileInputStream by opening a file.
| fileName | the name of the file to open |
| timeout_ms | a timeout period with a resolution of milliseconds (a relative date/time value; integer arguments will be assumed to be milliseconds); if not given or negative the operations will never time out |
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream.
| limit | the maximum number of bytes to read |
| FILE-READ-ERROR | if an I/O error occurs |
| FILE-READ-TIMEOUT-ERROR | if no byte could be read in the timeout specified in the constructor |
Implements Qore::InputStream.