#include <FileByteStream.h>
Inheritance diagram for FileByteStream:
Public Member Functions | |
FileByteStream (string &filename, string tryext="", bool preload=false) throw (InputByteStreamError) | |
Opens the requested file. | |
~FileByteStream () | |
void | seek (int pos) throw (InputByteStreamError) |
Sets the position of the file pointer. |
|
Opens the requested file.
If preload is true, then open the file and read it entire into memory (possibly helpful if the client will be seeking a lot). If the file can't be opened, then try adding The file to be opened must be a seekable object -- that is, it must be a regular file, rather than a named pipe or a socket. The constructor checks this, and throws an exception if this is not the case. If you wish to open a named pipe, you can do so using InputByteStream#InputByteStream(string).
|
|
|
|
Sets the position of the file pointer.
|