| java.lang.Object |
| ↳ |
com.google.gdata.wireformats.output.CharacterGenerator<S> |
Known Direct Subclasses
|
Known Indirect Subclasses
| AtomDualGenerator |
A dual-mode generator for atom. |
| AtomGenerator |
The AtomGenerator class is a concrete implementation of the OutputGenerator
interface that generates GData feeds and entries using the Atom XML Syntax. |
| AtomServiceDualGenerator |
A dual-mode generator for atom-service. |
| AtomServiceGenerator |
Generates the metadata for an Atom Service (introspection) document. |
| DualModeGenerator<T> |
A bridge between old and new data models for output generators. |
| ElementGenerator<E extends Element> |
The ElementGenerator class implements a simple {WireFormatOutputGenerator}
that can generate documents from any GDOM Element representation. |
| OpenSearchGenerator |
Generates the output for an OpenSearch description document
|
| RssDualGenerator |
An RSS generator that can generate from both old and new data model formats. |
| RssGenerator |
The RssGenerator class is a concrete implementation of the OutputGenerator
interface that generates GData feeds and entries using the RSS 2.0 Syntax. |
|
Class Overview
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.
Summary
| Public Methods |
|
void
|
generate(OutputStream contentStream, OutputProperties outProps, S s)
Generates content to the output stream based upon the provided
request/response.
|
|
abstract
void
|
generate(Writer contentWriter, OutputProperties outProps, S s)
Generates character content to the specified writer.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.wireformats.output.OutputGenerator
|
Public Constructors
public
CharacterGenerator
()
Public Methods
public
void
generate
(OutputStream contentStream, OutputProperties outProps, S s)
Generates content to the output stream based upon the provided
request/response.
Parameters
| contentStream
| The target stream for content generation. |
| outProps
| Output properties for the generated output |
| s
| Source object for output generation
|
public
abstract
void
generate
(Writer contentWriter, OutputProperties outProps, S s)
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. |
Protected Methods
protected
static
String
getCharsetEncoding
(OutputProperties outProps)
Returns the character set encoding that should be used for generated
output.
Parameters
| outProps
| Output properties for generated output |
Returns
- character set encoding for output
protected
Writer
getContentWriter
(OutputProperties outProps, OutputStream contentStream)
Returns a Writer that is properly configured to generate output
based upon the request and response attributes.
Parameters
| outProps
| Output properties for the generated output. |
| contentStream
| |
protected
boolean
usePrettyPrint
(OutputProperties outProps)
Returns true if the output should use a pretty printed format on
output. The default implementation will pretty print output if the
PRETTYPRINT parameter has a value of
"true".
Parameters
| outProps
| Output properties for the generated output. |
Returns
true if the output should be formatted.