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. |
parse
getCharset
createResult, createResult, getAltFormat, getResultType
public AtomServiceDataParser()
protected <R extends ServiceDocument> R parse(XmlEventSource eventSource, InputProperties inProps, java.lang.Class<R> resultClass)
XmlInputParser
XmlEventSource
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
CharacterParser
Reader
.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