com.google.gdata.wireformats.output
Class WireFormatOutputGenerator<T>
java.lang.Object
com.google.gdata.wireformats.output.CharacterGenerator<T>
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.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WireFormatOutputGenerator
public WireFormatOutputGenerator()
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