U - The format of the raw data, e.g. an InputStream,
a ResultSet.T - The type of the converted objects.public interface Converter<U,T>
DataReader.
A converter instance is typically created by the application code, and passed to
the datareader.| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the next available data entity in the desired type
|
void |
initialize(U input)
Initialize the raw data.
|
boolean |
next()
Indicate whether or not more data can be expected from this converter.
|
void initialize(U input) throws java.io.IOException
XmlConverter, for example,
the DOM-model is created in this method.input - the raw input.java.io.IOException - in case the raw input can't be processed by this converter.T get()
boolean next()
false a call to get()
will fail.