com.google.gdata.wireformats.output
Class CharacterGenerator<S>
java.lang.Object
com.google.gdata.wireformats.output.CharacterGenerator<S>
- Type Parameters:
S
- source object type for object generation
- All Implemented Interfaces:
- OutputGenerator<S>
- Direct Known Subclasses:
- WireFormatOutputGenerator, XmlGenerator
public abstract class CharacterGenerator<S>
- extends java.lang.Object
- implements OutputGenerator<S>
The CharacterGenerator class is a base class to support the implementation of
character-oriented OutputGenerator
types. It provides common logic
for determining the appropriate character set encoding based upon output
properties and will provide a bridge between output streams and writers.
Method Summary |
void |
generate(java.io.OutputStream contentStream,
OutputProperties outProps,
S s)
Generates content to the output stream based upon the provided
request/response. |
abstract void |
generate(java.io.Writer contentWriter,
OutputProperties outProps,
S s)
Generates character content to the specified writer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharacterGenerator
public CharacterGenerator()
generate
public void generate(java.io.OutputStream contentStream,
OutputProperties outProps,
S s)
throws java.io.IOException
- Description copied from interface:
OutputGenerator
- Generates content to the output stream based upon the provided
request/response.
- Specified by:
generate
in interface OutputGenerator<S>
- Parameters:
contentStream
- the target stream for content generation.outProps
- output properties for the generated outputs
- source object for output generation
- Throws:
java.io.IOException
generate
public abstract void generate(java.io.Writer contentWriter,
OutputProperties outProps,
S s)
throws java.io.IOException
- Generates character content to the specified writer.
- Parameters:
contentWriter
- output writer.outProps
- output properties for the generated output.s
- source object for the generated output.
- Throws:
java.io.IOException