com.google.gdata.wireformats.output
Class XmlGenerator<S>

java.lang.Object
  extended by com.google.gdata.wireformats.output.CharacterGenerator<S>
      extended by com.google.gdata.wireformats.output.XmlGenerator<S>
Type Parameters:
S - source object type for output generation
All Implemented Interfaces:
OutputGenerator<S>
Direct Known Subclasses:
AtomGenerator, AtomServiceGenerator, OpenSearchGenerator, RssGenerator

public abstract class XmlGenerator<S>
extends CharacterGenerator<S>

The XmlGenerator class is an abstract base class supporting the implementation of the OutputGenerator interface for XML content types.


Constructor Summary
XmlGenerator()
           
 
Method Summary
 void generate(java.io.Writer w, OutputProperties outProps, S source)
          Generates content to the writer based upon the provided request/response.
abstract  void generateXml(XmlWriter w, OutputProperties outProps, S source)
          Generates the XML content to the provided XML writer instance based upon the query request/response attributes.
 
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
 
Methods inherited from interface com.google.gdata.wireformats.output.OutputGenerator
getAltFormat, getSourceType
 

Constructor Detail

XmlGenerator

public XmlGenerator()
Method Detail

generate

public void generate(java.io.Writer w,
                     OutputProperties outProps,
                     S source)
              throws java.io.IOException
Generates content to the writer based upon the provided request/response.

Specified by:
generate in class CharacterGenerator<S>
Parameters:
w - output writer.
outProps - output properties for the generated output.
source - source object for the generated output.
Throws:
java.io.IOException

generateXml

public abstract void generateXml(XmlWriter w,
                                 OutputProperties outProps,
                                 S source)
                          throws java.io.IOException
Generates the XML content to the provided XML writer instance based upon the query request/response attributes.

Throws:
java.io.IOException