public class

AtomDualParser

extends Object
implements InputParser<T>
java.lang.Object
   ↳ com.google.gdata.wireformats.input.AtomDualParser

Class Overview

The AtomDualModeParser class provides an InputParser implementation that is capable of parsing into classes that use the old or new data model. The actual parsing is done by delegating to an instance of the AtomDataParser or ElementParser class.

Summary

Fields
private final InputParser<IAtom> dataParser Parser to use for old data model results
private final InputParser<IAtom> elementParser Parser to use for new data model results
Public Constructors
AtomDualParser()
Public Methods
AltFormat getAltFormat()
Returns the alternate representation format that is expected as input to the parser.
Class<IAtom> getResultType()
Returns the target type that is populated by the parser from the input stream.
<R extends IAtom> R parse(ParseSource parseSource, InputProperties inProps, 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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.wireformats.input.InputParser

Fields

private final InputParser<IAtom> dataParser

Parser to use for old data model results

private final InputParser<IAtom> elementParser

Parser to use for new data model results

Public Constructors

public AtomDualParser ()

Public Methods

public AltFormat getAltFormat ()

Returns the alternate representation format that is expected as input to the parser.

public Class<IAtom> getResultType ()

Returns the target type that is populated by the parser from the input stream.

public R parse (ParseSource parseSource, InputProperties inProps, 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.

Parameters
parseSource Providing the source of the data
inProps Properties describing the input data
resultClass Specific type of result expected from the parse
Throws
IOException
ServiceException