Class WriterBackedGenerator
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.base.GeneratorBase
com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator
com.fasterxml.jackson.dataformat.javaprop.impl.WriterBackedGenerator
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned, Closeable, Flushable, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.JsonGenerator.Feature -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final WriterUnderlyingWriterused for output.protected char[]Intermediate buffer in which contents are buffered before being written using_out.protected final intOffset to index after the last valid index in_outputBuffer.protected intPointer to the next available location in_outputBufferFields inherited from class JavaPropsGenerator
_basePath, _headerChecked, _indentLength, _jpropContext, _schema, _streamWriteConstraints, BOGUS_WRITE_CONTEXT, SHORT_WRITEFields inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_cfgNumbersAsStrings, _closed, _features, _ioContext, _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_STRINGFields inherited from class com.fasterxml.jackson.core.JsonGenerator
_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES -
Constructor Summary
ConstructorsConstructorDescriptionWriterBackedGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, Writer out, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_appendFieldName(StringBuilder path, String name) protected voidprotected voidprotected 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 voidprotected void_writeRaw(char c) protected void_writeRaw(char[] text, int offset, int len) protected voidprotected void_writeRaw(StringBuilder text) protected void_writeRawLong(String text) protected void_writeRawLong(StringBuilder text) protected void_writeUnescapedEntry(String value) voidclose()voidflush()Methods inherited from class JavaPropsGenerator
_verifyValueWrite, assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, currentValue, getCurrentValue, getOutputContext, getSchema, getWriteCapabilities, setCurrentValue, setPrettyPrinter, setSchema, streamWriteConstraints, 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, writeUTF8StringMethods inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getFeatureMask, ioContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTreeMethods inherited from class com.fasterxml.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getPrettyPrinter, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writePOJO, writePOJOField, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
-
Field Details
-
_out
-
_outputBuffer
protected char[] _outputBufferIntermediate buffer in which contents are buffered before being written using_out. -
_outputTail
protected int _outputTailPointer to the next available location in_outputBuffer -
_outputEnd
protected final int _outputEndOffset to index after the last valid index in_outputBuffer. Typically same as length of the buffer.
-
-
Constructor Details
-
WriterBackedGenerator
public WriterBackedGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, Writer out, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec)
-
-
Method Details
-
getOutputTarget
- Overrides:
getOutputTargetin classcom.fasterxml.jackson.core.JsonGenerator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
IOException
-
_releaseBuffers
protected void _releaseBuffers()- Specified by:
_releaseBuffersin classcom.fasterxml.jackson.core.base.GeneratorBase
-
_flushBuffer
- Throws:
IOException
-
_appendFieldName
- Specified by:
_appendFieldNamein classJavaPropsGenerator
-
_writeEscapedEntry
- Specified by:
_writeEscapedEntryin classJavaPropsGenerator- Throws:
IOException
-
_writeEscapedEntry
- Specified by:
_writeEscapedEntryin classJavaPropsGenerator- Throws:
IOException
-
_writeUnescapedEntry
- Specified by:
_writeUnescapedEntryin classJavaPropsGenerator- Throws:
IOException
-
_writeEscaped
- Throws:
IOException
-
_writeEscaped
- Throws:
IOException
-
_writeLinefeed
- Throws:
IOException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
IOException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
IOException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
IOException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
IOException
-
_writeRawLong
- Throws:
IOException
-
_writeRawLong
- Throws:
IOException
-