public class

AtomServiceDataParser

extends XmlInputParser<T>
java.lang.Object
   ↳ com.google.gdata.wireformats.input.AbstractParser<T>
     ↳ com.google.gdata.wireformats.input.CharacterParser<T>
       ↳ com.google.gdata.wireformats.input.XmlInputParser<T>
         ↳ com.google.gdata.wireformats.input.AtomServiceDataParser

Class Overview

The AtomServiceDataParser class provides an InputParser implementation for Atom Service Documents.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.wireformats.input.AbstractParser
Public Constructors
AtomServiceDataParser()
Constructs a new AtomServiceDataParser.
Public Methods
<R extends ServiceDocument> R parse(Reader inputReader, InputProperties inProps, Class<R> resultClass)
Parses character content with the specified properties to produce a result of an expected type.
Protected Methods
<R extends ServiceDocument> R parse(XmlEventSource eventSource, InputProperties inProps, Class<R> resultClass)
The parse method should be implemented by subclasses and should parse input data from the provided XmlEventSource instance.
[Expand]
Inherited Methods
From class com.google.gdata.wireformats.input.XmlInputParser
From class com.google.gdata.wireformats.input.CharacterParser
From class com.google.gdata.wireformats.input.AbstractParser
From class java.lang.Object
From interface com.google.gdata.wireformats.input.InputParser

Public Constructors

public AtomServiceDataParser ()

Constructs a new AtomServiceDataParser.

Public Methods

public R parse (Reader inputReader, InputProperties inProps, Class<R> resultClass)

Parses character content with the specified properties to produce a result of an expected type. Concrete subclasses will provide an implementation of this method that constructs a result type instance of the result class and then parses into it from the provided Reader.

Parameters
inputReader Reader to parse data from
inProps Input properties
resultClass Class to instantiate and parse result into.
Returns
  • result object from parse
Throws
IOException
ServiceException

Protected Methods

protected R parse (XmlEventSource eventSource, InputProperties inProps, Class<R> resultClass)

The parse method should be implemented by subclasses and should parse input data from the provided XmlEventSource instance.

Parameters
eventSource Event source.
inProps Input properties.
resultClass Result type.
Returns
  • instance of result type.