public class

AtomServiceDualParser

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

Class Overview

The AtomServiceDualParser class is an InputParser implementation that is capable of parsing service documents into either the old or new data model.

Summary

Fields
private final InputParser<ServiceDocument> dataParser Parser to use for old data model results
private final InputParser<IServiceDocument> elementParser Parser to use for new data model results
Public Constructors
AtomServiceDualParser()
Public Methods
AltFormat getAltFormat()
Returns the alternate representation format that is expected as input to the parser.
Class<IServiceDocument> getResultType()
Returns the target type that is populated by the parser from the input stream.
<R extends IServiceDocument> 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<ServiceDocument> dataParser

Parser to use for old data model results

private final InputParser<IServiceDocument> elementParser

Parser to use for new data model results

Public Constructors

public AtomServiceDualParser ()

Public Methods

public AltFormat getAltFormat ()

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

public Class<IServiceDocument> 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