| java.lang.Object | |
| ↳ | com.google.gdata.wireformats.input.AbstractParser<T> |
Known Direct Subclasses
|
Known Indirect Subclasses
|
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.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| altFormat | |||||||||||
| resultType | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new AbstractParser instance for the specified representation
and result type.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the alternate representation format that is expected as input to
the parser.
| |||||||||||
Returns the target type that is populated by the parser from the input
stream.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new result object instance using the provided result
implementation class.
| |||||||||||
Creates a new result object instance using the result type passed to
the constructor.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.wireformats.input.InputParser
| |||||||||||
Constructs a new AbstractParser instance for the specified representation and result type.
| altFormat | Parsed alternate representation |
|---|---|
| resultType | Type of result |
Returns the alternate representation format that is expected as input to the parser.
Returns the target type that is populated by the parser from the input stream.
Creates a new result object instance using the provided result implementation class. This form can be used by subclasses where the result type is an interface or where results may be an implementation class that is a subclass of the result type.
| resultImplClass | Result implementation class. The type must implement the result type of the parser and provide a null argument constructor. |
|---|
| ContentCreationException | if unable to create result object |
|---|
Creates a new result object instance using the result type passed to the constructor. This form can be used by subclasses where the result type is a concrete implementation class.
| ContentCreationException |
|---|