S
- source object type for object generationpublic abstract class CharacterGenerator<S> extends java.lang.Object implements OutputGenerator<S>
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.Constructor and Description |
---|
CharacterGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAltFormat, getSourceType
public void generate(java.io.OutputStream contentStream, OutputProperties outProps, S s) throws java.io.IOException
OutputGenerator
generate
in interface OutputGenerator<S>
contentStream
- the target stream for content generation.outProps
- output properties for the generated outputs
- source object for output generationjava.io.IOException
public abstract void generate(java.io.Writer contentWriter, OutputProperties outProps, S s) throws java.io.IOException
contentWriter
- output writer.outProps
- output properties for the generated output.s
- source object for the generated output.java.io.IOException