phrase nets
|
Public Member Functions | |
DataSourceText (File source) | |
URI | uri () |
String | nextBlock () throws PNException |
void | reset () |
String | title () |
A datasource backed by a plain text document.
pn::parse::DataSourceText::DataSourceText | ( | File | source | ) | [inline] |
Ctor.
source | The plain text file. Must not be null |
String pn::parse::DataSourceText::nextBlock | ( | ) | throws PNException [inline] |
Returns the next block of data or null if there is no more data. Linker can assume that there is no connection between two blocks, i.e., blocks can be parsed independently.
PNException | On errors |
Implements pn::parse::DataSource.
void pn::parse::DataSourceText::reset | ( | ) | [inline] |
Resets this data source to its initial state, so that nextBlock() behaves as as if called on a newly created object.
Implements pn::parse::DataSource.
String pn::parse::DataSourceText::title | ( | ) | [inline] |
Implements pn::parse::DataSource.
URI pn::parse::DataSourceText::uri | ( | ) | [inline] |
Implements pn::parse::DataSource.