T
- expected source object typepublic abstract class DualModeGenerator<T> extends WireFormatOutputGenerator<T>
Modifier | Constructor and Description |
---|---|
protected |
DualModeGenerator(CharacterGenerator<T> oldGen) |
Modifier and Type | Method and Description |
---|---|
void |
generate(java.io.Writer contentWriter,
OutputProperties outProps,
T source)
Generates content to the writer based upon the provided request/response.
|
getWireFormat
generate, getCharsetEncoding, getContentWriter, usePrettyPrint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAltFormat, getSourceType
protected DualModeGenerator(CharacterGenerator<T> oldGen)
public void generate(java.io.Writer contentWriter, OutputProperties outProps, T source) throws java.io.IOException
WireFormatOutputGenerator
generate
in class WireFormatOutputGenerator<T>
contentWriter
- output writer.outProps
- output properties for the generated output.source
- source object for the generated output.java.io.IOException