phrase nets
Public Member Functions
pn::parse::DataSourceText Class Reference
Inheritance diagram for pn::parse::DataSourceText:
pn::parse::DataSource

List of all members.

Public Member Functions

 DataSourceText (File source)
URI uri ()
String nextBlock () throws PNException
void reset ()
String title ()

Detailed Description

A datasource backed by a plain text document.


Constructor & Destructor Documentation

pn::parse::DataSourceText::DataSourceText ( File  source) [inline]

Ctor.

Parameters:
sourceThe plain text file. Must not be null

Member Function Documentation

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.

Returns:
The next data block
Exceptions:
PNExceptionOn 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]
Returns:
A short title (name) of this data source

Implements pn::parse::DataSource.

URI pn::parse::DataSourceText::uri ( ) [inline]
Returns:
The URI of the data source

Implements pn::parse::DataSource.


The documentation for this class was generated from the following file:
 All Classes Functions Variables