com.google.gdata.wireformats.input
Class AtomServiceDualParser

java.lang.Object
  extended by com.google.gdata.wireformats.input.AtomServiceDualParser
All Implemented Interfaces:
InputParser<IServiceDocument>

public class AtomServiceDualParser
extends java.lang.Object
implements InputParser<IServiceDocument>

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


Constructor Summary
AtomServiceDualParser()
           
 
Method Summary
 AltFormat getAltFormat()
          Returns the alternate representation format that is expected as input to the parser.
 java.lang.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, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomServiceDualParser

public AtomServiceDualParser()
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<IServiceDocument>

getResultType

public java.lang.Class<IServiceDocument> 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<IServiceDocument>

parse

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

Specified by:
parse in interface InputParser<IServiceDocument>
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