Inheritance diagram for InputSource:
Supports derivation of input source, using specified relative of absolute paths.
Public Member Functions | |
virtual const String * | getLocation () const =0 |
Current stream location. | |
virtual const byte * | openStream ()=0 |
Opens stream and returns array of readed bytes. | |
virtual void | closeStream ()=0 |
Explicitly closes stream and frees all resources. | |
virtual int | length () const =0 |
Return length of opened stream. | |
virtual InputSource * | createRelative (const String *relPath) |
Creates inherited InputSource with the same type relatively to the current. | |
Static Public Member Functions | |
static InputSource * | newInstance (const String *path) |
Tries statically create instance of InputSource object, according to passed path string. | |
static InputSource * | newInstance (const String *path, InputSource *base) |
Statically creates instance of InputSource object, possibly based on parent source stream. | |
static String * | getAbsolutePath (const String *basePath, const String *relPath) |
Returns new String, created from linking of basePath and relPath parameters. | |
static bool | isRelative (const String *path) |
Checks, if passed path relative or not. |
|
Opens stream and returns array of readed bytes.
|
|
Explicitly closes stream and frees all resources. Stream could be reopened.
|
|
Return length of opened stream.
|
|
Tries statically create instance of InputSource object, according to passed
|
|
Statically creates instance of InputSource object, possibly based on parent source stream.
|
|
Returns new String, created from linking of
|
|
Creates inherited InputSource with the same type relatively to the current.
|