T - The type of the converted objects.public class XmlConverter<T> extends InputStreamConverter<T>
InputStream into one or more instances of a java class
with type T.| Constructor and Description |
|---|
XmlConverter(java.lang.Class<T> clazz)
Create an XmlConverter that will generate instances of the specified class.
|
XmlConverter(java.lang.String tag,
java.lang.Class<T> clazz)
Create an XmlConverter that will generate instances of the specified class.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the next available data entity in the desired type
|
void |
initialize(java.io.InputStream is)
Initialize the raw data.
|
boolean |
next()
Indicate whether or not more data can be expected from this converter.
|
public XmlConverter(java.lang.Class<T> clazz)
clazz - the entities returned by the get() call will be of class clazzpublic XmlConverter(java.lang.String tag,
java.lang.Class<T> clazz)
tag parameter.clazz - the entities returned by the get() call will be of class clazztag - the name of the xml element(s) holding the data entity(ies).public T get()
Converterpublic boolean next()
Converterfalse a call to Converter.get()
will fail.public void initialize(java.io.InputStream is)
ConverterXmlConverter, for example,
the DOM-model is created in this method.is - the raw input.