phrase nets
Public Member Functions | Package Functions
pn::parse::DataSource Interface Reference
Inheritance diagram for pn::parse::DataSource:
pn::parse::DataSourceHTML pn::parse::DataSourceText

List of all members.

Public Member Functions

String nextBlock () throws PNException
String title ()
void reset ()

Package Functions

URI uri ()

Detailed Description

A data source.


Member Function Documentation

String pn::parse::DataSource::nextBlock ( ) throws PNException

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

Implemented in pn::parse::DataSourceHTML, and pn::parse::DataSourceText.

void pn::parse::DataSource::reset ( )

Resets this data source to its initial state, so that nextBlock() behaves as as if called on a newly created object.

Implemented in pn::parse::DataSourceHTML, and pn::parse::DataSourceText.

String pn::parse::DataSource::title ( )
Returns:
A short title (name) of this data source

Implemented in pn::parse::DataSourceHTML, and pn::parse::DataSourceText.

URI pn::parse::DataSource::uri ( ) [package]
Returns:
The URI of the data source

Implemented in pn::parse::DataSourceHTML, and pn::parse::DataSourceText.


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