com.google.gdata.wireformats.input
Class AbstractParser<T>

java.lang.Object
  extended by com.google.gdata.wireformats.input.AbstractParser<T>
All Implemented Interfaces:
InputParser<T>
Direct Known Subclasses:
CharacterParser, MediaMultipartParser, MediaParser

public abstract class AbstractParser<T>
extends java.lang.Object
implements InputParser<T>

The AbstractParser class is an abstract base class that can be used in the creation of new InputParser implementations. It provides the basic storage and getters for the alternate representation and result type and utility code for constructing new result type implementation instances.


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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gdata.wireformats.input.InputParser
parse
 

Method Detail

getAltFormat

public AltFormat getAltFormat()
Description copied from interface: InputParser
Returns the alternate representation format that is expected as input to the parser.

Specified by:
getAltFormat in interface InputParser<T>

getResultType

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

Specified by:
getResultType in interface InputParser<T>