com.google.gdata.wireformats.output
Class WireFormatOutputGenerator<T>

java.lang.Object
  extended by com.google.gdata.wireformats.output.CharacterGenerator<T>
      extended by com.google.gdata.wireformats.output.WireFormatOutputGenerator<T>
Type Parameters:
T - the expected object type handled by the generator
All Implemented Interfaces:
OutputGenerator<T>
Direct Known Subclasses:
DualModeGenerator, ElementGenerator

public abstract class WireFormatOutputGenerator<T>
extends CharacterGenerator<T>

An OutputGenerator using a WireFormat to serialize to the output stream.


Constructor Summary
WireFormatOutputGenerator()
           
 
Method Summary
 void generate(java.io.Writer w, OutputProperties outProps, T source)
          Generates content to the writer based upon the provided request/response.
abstract  WireFormat getWireFormat()
          Returns the wire format to use when generating this output.
 
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

WireFormatOutputGenerator

public WireFormatOutputGenerator()
Method Detail

getWireFormat

public abstract WireFormat getWireFormat()
Returns the wire format to use when generating this output.


generate

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

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