com.google.gdata.wireformats.output
Class AtomGenerator

java.lang.Object
  extended by com.google.gdata.wireformats.output.CharacterGenerator<S>
      extended by com.google.gdata.wireformats.output.XmlGenerator<IAtom>
          extended by com.google.gdata.wireformats.output.AtomGenerator
All Implemented Interfaces:
OutputGenerator<IAtom>

public class AtomGenerator
extends XmlGenerator<IAtom>

The AtomGenerator class is a concrete implementation of the OutputGenerator interface that generates GData feeds and entries using the Atom XML Syntax.


Constructor Summary
AtomGenerator()
           
 
Method Summary
 void generateXml(XmlWriter xw, OutputProperties outProps, IAtom source)
          Generates the XML content to the provided XML writer instance based upon the query request/response attributes.
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<IAtom> getSourceType()
          Returns the Class that represents the expected source data type for output generation.
 
Methods inherited from class com.google.gdata.wireformats.output.XmlGenerator
generate
 
Methods inherited from class com.google.gdata.wireformats.output.CharacterGenerator
generate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomGenerator

public AtomGenerator()
Method Detail

getAltFormat

public AltFormat getAltFormat()
Description copied from interface: OutputGenerator
Returns the alternate representation format produced the generator.


getSourceType

public java.lang.Class<IAtom> getSourceType()
Description copied from interface: OutputGenerator
Returns the Class that represents the expected source data type for output generation.


generateXml

public void generateXml(XmlWriter xw,
                        OutputProperties outProps,
                        IAtom source)
                 throws java.io.IOException
Description copied from class: XmlGenerator
Generates the XML content to the provided XML writer instance based upon the query request/response attributes.

Specified by:
generateXml in class XmlGenerator<IAtom>
Throws:
java.io.IOException