com.google.gdata.wireformats.input
Class AtomServiceDataParser
java.lang.Object
com.google.gdata.wireformats.input.AbstractParser<T>
com.google.gdata.wireformats.input.CharacterParser<T>
com.google.gdata.wireformats.input.XmlInputParser<ServiceDocument>
com.google.gdata.wireformats.input.AtomServiceDataParser
- All Implemented Interfaces:
- InputParser<ServiceDocument>
public class AtomServiceDataParser
- extends XmlInputParser<ServiceDocument>
The AtomServiceDataParser class provides an InputParser
implementation for Atom Service Documents.
Method Summary |
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomServiceDataParser
public AtomServiceDataParser()
- Constructs a new AtomServiceDataParser.
parse
public <R extends ServiceDocument> R parse(java.io.Reader inputReader,
InputProperties inProps,
java.lang.Class<R> resultClass)
throws java.io.IOException,
ServiceException
- Description copied from class:
CharacterParser
- Parses character content with the specified properties to produce a result
of an expected type. Concrete subclasses will provide an implementation
of this method that constructs a result type instance of the result class
and then parses into it from the provided
Reader
.
- Specified by:
parse
in class CharacterParser<ServiceDocument>
- Type Parameters:
R
- expected result type- Parameters:
inputReader
- reader to parse data frominProps
- input propertiesresultClass
- class to instantiate and parse result into.
- Returns:
- result object from parse
- Throws:
java.io.IOException
- if an error occurred reading data while parsing
ServiceException
- if an error occurred within the content