com.google.gdata.wireformats.input
Interface InputParser<T>

Type Parameters:
T - base type of result objects returned by the parser.
All Known Implementing Classes:
AbstractParser, AtomDataParser, AtomDualParser, AtomServiceDataParser, AtomServiceDualParser, CharacterParser, ElementParser, MediaMultipartParser, MediaParser, XmlInputParser

public interface InputParser<T>

Wire format interface implemented by helper classes that parse data from an InputStream and return an object representation of a particular type.


Method Summary
 AltFormat getAltFormat()
          Returns the alternate representation format that is expected as input to the parser.
 java.lang.Class<? extends T> getResultType()
          Returns the target type that is populated by the parser from the input stream.
<R extends T>
R
parse(ParseSource parseSource, InputProperties inProps, java.lang.Class<R> resultClass)
          Parses data in the supported representation format from the input stream based upon the provided input properties into the provided target object.
 

Method Detail

getAltFormat

AltFormat getAltFormat()
Returns the alternate representation format that is expected as input to the parser.


getResultType

java.lang.Class<? extends T> getResultType()
Returns the target type that is populated by the parser from the input stream.


parse

<R extends T> R parse(ParseSource parseSource,
                      InputProperties inProps,
                      java.lang.Class<R> resultClass)
                  throws java.io.IOException,
                         ServiceException
Parses data in the supported representation format from the input stream based upon the provided input properties into the provided target object.

Parameters:
parseSource - providing the source of the data
inProps - properties describing the input data
resultClass - specific type of result expected from the parse
Throws:
java.io.IOException
ServiceException