public interface DataSource extends DataHandler, ContentTypeDataSource
The DataSource interface is implemented by all classes capable for fetching DataElements from the respective source.
Caution: Sources must also define a constructor (String input, Parameter[] inputParameters). This constructor is used by the service to instantiate the DataSource.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the DataSource has more
DataElements. |
DataElement |
next()
Returns the next element of the DataSource.
|
close, isClosednextContentTypeboolean hasNext()
DataElements.hasNext in interface ContentTypeDataSourceDataElement next() throws Exception
ExceptionCopyright © 2014. All Rights Reserved.