upidiff.input
Interface InputSource

All Known Implementing Classes:
FileInputSource

public interface InputSource

An generic interface for sources of data. Used by the InputBuffer to read input data from a data source. data source can be for example a file in a filesystem or a file on a Fileserver or.

Author:
bmeurer, kasbar

Method Summary
 String name()
          Queries the name associated with this input source.
 String readLine()
          This method reads one line from an input source.
 String url()
          Queries the URL for this input source.
 

Method Detail

name

public String name()
Queries the name associated with this input source. The name is usually the name of the file opened or in general the URL to the source.

Returns:
The name associated with this input source.

url

public String url()
Queries the URL for this input source.

Returns:
The URL for this input source.

readLine

public String readLine()
                throws InputException
This method reads one line from an input source.

Returns:
The line read or null at end of file.
Throws:
InputException - Indicates an error while trying to read data from the input source.