public class WriterBackedGenerator extends JavaPropsGenerator
Modifier and Type | Field and Description |
---|---|
protected Writer |
_out
Underlying
Writer used for output. |
protected char[] |
_outputBuffer
Intermediate buffer in which contents are buffered before
being written using
_out . |
protected int |
_outputEnd
Offset to index after the last valid index in
_outputBuffer . |
protected int |
_outputTail
Pointer to the next available location in
_outputBuffer |
_basePath, _headerChecked, _indentLength, _ioContext, _jpropContext, _schema, BOGUS_WRITE_CONTEXT, SHORT_WRITE
_cfgNumbersAsStrings, _closed, _features, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
Constructor and Description |
---|
WriterBackedGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
Writer out,
int stdFeatures,
com.fasterxml.jackson.core.ObjectCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected void |
_flushBuffer() |
protected void |
_releaseBuffers() |
protected void |
_writeEscaped(char[] text,
int offset,
int len) |
protected void |
_writeEscaped(String value) |
protected void |
_writeEscapedEntry(char[] text,
int offset,
int len) |
protected void |
_writeEscapedEntry(String value) |
protected void |
_writeLinefeed() |
protected void |
_writeRaw(char c) |
protected void |
_writeRaw(char[] text,
int offset,
int len) |
protected void |
_writeRaw(String text) |
protected void |
_writeRaw(StringBuilder text) |
protected void |
_writeRawLong(String text) |
protected void |
_writeRawLong(StringBuilder text) |
protected void |
_writeUnescapedEntry(String value) |
void |
close() |
void |
flush() |
Object |
getOutputTarget() |
_verifyValueWrite, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, getCurrentValue, getOutputContext, getSchema, setCurrentValue, setPrettyPrinter, setSchema, useDefaultPrettyPrinter, version, writeBinary, writeBoolean, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeStartArray, writeStartObject, writeString, writeString, writeUTF8String
_asString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getFeatureMask, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree
_reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getPrettyPrinter, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeStartArray, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
protected char[] _outputBuffer
_out
.protected int _outputTail
_outputBuffer
protected final int _outputEnd
_outputBuffer
.
Typically same as length of the buffer.public WriterBackedGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, Writer out, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec)
public Object getOutputTarget()
getOutputTarget
in class com.fasterxml.jackson.core.JsonGenerator
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
protected void _releaseBuffers()
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected void _flushBuffer() throws IOException
IOException
protected void _writeEscapedEntry(String value) throws IOException
_writeEscapedEntry
in class JavaPropsGenerator
IOException
protected void _writeEscapedEntry(char[] text, int offset, int len) throws IOException
_writeEscapedEntry
in class JavaPropsGenerator
IOException
protected void _writeUnescapedEntry(String value) throws IOException
_writeUnescapedEntry
in class JavaPropsGenerator
IOException
protected void _writeEscaped(String value) throws IOException
IOException
protected void _writeEscaped(char[] text, int offset, int len) throws IOException
IOException
protected void _writeLinefeed() throws IOException
IOException
protected void _writeRaw(char c) throws IOException
_writeRaw
in class JavaPropsGenerator
IOException
protected void _writeRaw(String text) throws IOException
_writeRaw
in class JavaPropsGenerator
IOException
protected void _writeRaw(StringBuilder text) throws IOException
_writeRaw
in class JavaPropsGenerator
IOException
protected void _writeRaw(char[] text, int offset, int len) throws IOException
_writeRaw
in class JavaPropsGenerator
IOException
protected void _writeRawLong(String text) throws IOException
IOException
protected void _writeRawLong(StringBuilder text) throws IOException
IOException
Copyright © 2017 FasterXML. All rights reserved.