public class AtomServiceDataParser extends XmlInputParser<ServiceDocument>
InputParser
implementation for Atom Service Documents.altFormat, resultType| Constructor and Description |
|---|
AtomServiceDataParser()
Constructs a new AtomServiceDataParser.
|
| Modifier and Type | Method and Description |
|---|---|
<R extends ServiceDocument> |
parse(java.io.Reader inputReader,
InputProperties inProps,
java.lang.Class<R> resultClass)
Parses character content with the specified properties to produce a result
of an expected type.
|
protected <R extends ServiceDocument> |
parse(XmlEventSource eventSource,
InputProperties inProps,
java.lang.Class<R> resultClass)
The parse method should be implemented by subclasses and should parse
input data from the provided
XmlEventSource instance. |
parsegetCharsetcreateResult, createResult, getAltFormat, getResultTypepublic AtomServiceDataParser()
protected <R extends ServiceDocument> R parse(XmlEventSource eventSource, InputProperties inProps, java.lang.Class<R> resultClass)
XmlInputParserXmlEventSource instance.parse in class XmlInputParser<ServiceDocument>R - result typeeventSource - event source.inProps - input properties.resultClass - result type.public <R extends ServiceDocument> R parse(java.io.Reader inputReader, InputProperties inProps, java.lang.Class<R> resultClass) throws java.io.IOException, ServiceException
CharacterParserReader.parse in class CharacterParser<ServiceDocument>R - expected result typeinputReader - reader to parse data frominProps - input propertiesresultClass - class to instantiate and parse result into.java.io.IOException - if an error occurred reading data while parsingServiceException - if an error occurred within the content