public abstract class XmlInputParser<T> extends CharacterParser<T>
InputParser implementations that parse XML content. Concrete
class will need to implement the both the
CharacterParser.parse(Reader, InputProperties, Class) and
parse(XmlEventSource, InputProperties, Class) methods to handle
parsing from the two possible source types.| Constructor and Description |
|---|
XmlInputParser(AltFormat altFormat,
java.lang.Class<T> resultClass)
Creates a new XmlInputParser instance for the provided representation and
result type.
|
| Modifier and Type | Method and Description |
|---|---|
<R extends T> |
parse(ParseSource parseSource,
InputProperties inProps,
java.lang.Class<R> targetClass)
The parse method will use the character encoding found in the output
properties instance to construct an appropriate
Reader and then
delegate to the CharacterParser.parse(Reader, InputProperties, Class) method
to perform the parsing. |
parsegetAltFormat, getResultTypepublic <R extends T> R parse(ParseSource parseSource, InputProperties inProps, java.lang.Class<R> targetClass) throws java.io.IOException, ServiceException
CharacterParserReader and then
delegate to the CharacterParser.parse(Reader, InputProperties, Class) method
to perform the parsing.parse in interface InputParser<T>parse in class CharacterParser<T>parseSource - providing the source of the datainProps - properties describing the input datatargetClass - specific type of result expected from the parsejava.io.IOExceptionServiceException