Class WriterBackedGenerator
java.lang.Object
tools.jackson.core.JsonGenerator
tools.jackson.core.base.GeneratorBase
tools.jackson.dataformat.javaprop.JavaPropsGenerator
tools.jackson.dataformat.javaprop.impl.WriterBackedGenerator
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,tools.jackson.core.Versioned
-
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 tools.jackson.dataformat.javaprop.JavaPropsGenerator
_basePath, _headerChecked, _indentLength, _schema, _streamWriteContext, SHORT_WRITEFields inherited from class tools.jackson.core.base.GeneratorBase
_closed, _ioContext, _objectWriteContext, _streamWriteConstraints, _streamWriteFeatures, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES, 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 Summary
ConstructorsConstructorDescriptionWriterBackedGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, JavaPropsSchema schema, Writer out) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_appendPropertyName(StringBuilder path, String name) protected voidprotected 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()intMethods inherited from class tools.jackson.dataformat.javaprop.JavaPropsGenerator
_verifyValueWrite, assignCurrentValue, canOmitProperties, canWriteObjectId, canWriteTypeId, currentValue, getPrettyPrinter, getSchema, streamWriteCapabilities, streamWriteContext, version, writeBinary, writeBoolean, writeEndArray, writeEndObject, writeName, writeNull, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writePropertyId, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeString, writeString, writeUTF8StringMethods inherited from class tools.jackson.core.base.GeneratorBase
_asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _constructDefaultPrettyPrinter, _decodeSurrogate, _throwInternal, configure, has, ioContext, isClosed, isEnabled, objectWriteContext, streamWriteConstraints, streamWriteFeatures, writeBinary, writeName, writePOJO, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartArray, writeStartObject, writeString, writeString, writeTreeMethods inherited from class tools.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentContentsExact, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportArgumentError, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _verifyOffsets, _wrapIOFailure, _writeTypePrefixUsingNative, _writeTypePrefixUsingWrapper, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, copyCurrentStructureExact, getCharacterEscapes, getHighestNonEscapedChar, setCharacterEscapes, writeArray, writeArray, writeArray, writeArray, writeArrayPropertyStart, writeBinary, writeBinary, writeBinary, writeBinaryProperty, writeBooleanProperty, writeEmbeddedObject, writeNullProperty, writeNumber, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeObjectId, writeObjectPropertyStart, writeObjectRef, writeOmittedProperty, writePOJOProperty, writeStringProperty, writeTypeId, writeTypePrefix, writeTypeSuffix
-
Field Details
-
_out
UnderlyingWriterused for output. -
_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(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, JavaPropsSchema schema, Writer out)
-
-
Method Details
-
streamWriteOutputTarget
- Specified by:
streamWriteOutputTargetin classtools.jackson.core.JsonGenerator
-
streamWriteOutputBuffered
public int streamWriteOutputBuffered()- Specified by:
streamWriteOutputBufferedin classtools.jackson.core.JsonGenerator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classtools.jackson.core.base.GeneratorBase
-
_closeInput
- Specified by:
_closeInputin classtools.jackson.core.base.GeneratorBase- Throws:
IOException
-
flush
public void flush() -
_releaseBuffers
protected void _releaseBuffers()- Specified by:
_releaseBuffersin classtools.jackson.core.base.GeneratorBase
-
_flushBuffer
protected void _flushBuffer() throws tools.jackson.core.JacksonException- Throws:
tools.jackson.core.JacksonException
-
_appendPropertyName
- Specified by:
_appendPropertyNamein classJavaPropsGenerator
-
_writeEscapedEntry
- Specified by:
_writeEscapedEntryin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeEscapedEntry
protected void _writeEscapedEntry(char[] text, int offset, int len) throws tools.jackson.core.JacksonException - Specified by:
_writeEscapedEntryin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeUnescapedEntry
- Specified by:
_writeUnescapedEntryin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeEscaped
- Throws:
tools.jackson.core.JacksonException
-
_writeEscaped
protected void _writeEscaped(char[] text, int offset, int len) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_writeLinefeed
protected void _writeLinefeed() throws tools.jackson.core.JacksonException- Throws:
tools.jackson.core.JacksonException
-
_writeRaw
protected void _writeRaw(char c) throws tools.jackson.core.JacksonException - Specified by:
_writeRawin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeRaw
- Specified by:
_writeRawin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeRaw
protected void _writeRaw(char[] text, int offset, int len) throws tools.jackson.core.JacksonException - Specified by:
_writeRawin classJavaPropsGenerator- Throws:
tools.jackson.core.JacksonException
-
_writeRawLong
- Throws:
tools.jackson.core.JacksonException
-
_writeRawLong
- Throws:
tools.jackson.core.JacksonException
-