Class TokenBuffer
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.databind.util.TokenBuffer
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Closeable
,Flushable
,AutoCloseable
public class TokenBuffer
extends com.fasterxml.jackson.core.JsonGenerator
Utility class used for efficient storage of
JsonToken
sequences, needed for temporary buffering.
Space efficient for different sequence lengths (especially so for smaller
ones; but not significantly less efficient for larger), highly efficient
for linear iteration and appending. Implemented as segmented/chunked
linked list of tokens; only modifications are via appends.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class
protected static final class
Individual segment of TokenBuffer that can store up to 16 tokens (limited by 4 bits per token type marker requirement).Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.JsonGenerator.Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Offset within last segment,protected boolean
protected TokenBuffer.Segment
First segment, for contents this buffer hasprotected boolean
Flag set during construction, if use ofBigDecimal
is to be forced on all floating-point values.protected int
Bit flag composed of bits that indicate whichJsonGenerator.Feature
s are enabled.protected boolean
Do we currently have a native type or object id buffered?protected boolean
protected boolean
protected TokenBuffer.Segment
Last segment of this buffer, one that is used for appending more tokensprotected boolean
protected com.fasterxml.jackson.core.ObjectCodec
Object codec to use for stream-based object conversion through parser/generator interfaces.protected Object
If native object ids supported, this is the id for following value (or first token of one) to be written.protected com.fasterxml.jackson.core.JsonStreamContext
Parse context from "parent" parser (one from which content to buffer is read, if specified).protected com.fasterxml.jackson.core.StreamReadConstraints
protected Object
If native type ids supported, this is the id for following value (or first token of one) to be written.protected com.fasterxml.jackson.core.json.JsonWriteContext
protected static final int
Fields inherited from class com.fasterxml.jackson.core.JsonGenerator
_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
-
Constructor Summary
ConstructorsConstructorDescriptionTokenBuffer
(com.fasterxml.jackson.core.JsonParser p) TokenBuffer
(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) TokenBuffer
(com.fasterxml.jackson.core.ObjectCodec codec, boolean hasNativeIds) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
_appendEndMarker
(com.fasterxml.jackson.core.JsonToken type) Specialized method used for appending a structural end Object/Array markerprotected final void
_appendFieldName
(Object value) Specialized method used for appending a field name, appending eitherString
orSerializableString
.protected final void
_appendStartMarker
(com.fasterxml.jackson.core.JsonToken type) Specialized method used for appending a structural start Object/Array markerprotected final void
_appendValue
(com.fasterxml.jackson.core.JsonToken type) Method used for appending token known to represent a "simple" scalar value where token is the only informationprotected final void
_appendValue
(com.fasterxml.jackson.core.JsonToken type, Object value) Method used for appending token known to represent a scalar value where there is additional content (text, number) beyond type tokenprotected void
_copyBufferContents
(com.fasterxml.jackson.core.JsonParser p) protected void
append
(TokenBuffer other) Helper method that will append contents of given buffer into this buffer.static TokenBuffer
asCopyOfValue
(com.fasterxml.jackson.core.JsonParser p) Deprecated.com.fasterxml.jackson.core.JsonParser
asParser()
Method used to create aJsonParser
that can read contents stored in this buffer.com.fasterxml.jackson.core.JsonParser
asParser
(com.fasterxml.jackson.core.JsonParser src) com.fasterxml.jackson.core.JsonParser
asParser
(com.fasterxml.jackson.core.ObjectCodec codec) Method used to create aJsonParser
that can read contents stored in this buffer.com.fasterxml.jackson.core.JsonParser
asParser
(com.fasterxml.jackson.core.StreamReadConstraints streamReadConstraints) com.fasterxml.jackson.core.JsonParser
Same as:boolean
Since we can efficiently storebyte[]
, yes.boolean
boolean
void
close()
void
copyCurrentEvent
(com.fasterxml.jackson.core.JsonParser p) void
copyCurrentStructure
(com.fasterxml.jackson.core.JsonParser p) deserialize
(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) Helper method used by standard deserializer.com.fasterxml.jackson.core.JsonGenerator
disable
(com.fasterxml.jackson.core.JsonGenerator.Feature f) com.fasterxml.jackson.core.JsonGenerator
enable
(com.fasterxml.jackson.core.JsonGenerator.Feature f) com.fasterxml.jackson.core.JsonToken
void
flush()
forceUseOfBigDecimal
(boolean b) com.fasterxml.jackson.core.ObjectCodec
getCodec()
int
final com.fasterxml.jackson.core.json.JsonWriteContext
com.fasterxml.jackson.core.util.JacksonFeatureSet
<com.fasterxml.jackson.core.StreamWriteCapability> boolean
isClosed()
boolean
isEmpty()
Accessor for checking whether this buffer has one or more tokens or not.boolean
isEnabled
(com.fasterxml.jackson.core.JsonGenerator.Feature f) overrideParentContext
(com.fasterxml.jackson.core.JsonStreamContext ctxt) Method that allows explicitly specifying parent parse context to associate with contents of this buffer.com.fasterxml.jackson.core.JsonGenerator
overrideStdFeatures
(int values, int mask) void
serialize
(com.fasterxml.jackson.core.JsonGenerator gen) Helper method that will write all contents of this buffer using givenJsonGenerator
.com.fasterxml.jackson.core.JsonGenerator
setCodec
(com.fasterxml.jackson.core.ObjectCodec oc) com.fasterxml.jackson.core.JsonGenerator
setFeatureMask
(int mask) Deprecated.toString()
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.Version
version()
void
writeBinary
(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) int
writeBinary
(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) Although we could support this method, it does not necessarily make sense: we cannot make good use of streaming because buffer must hold all the data.void
writeBoolean
(boolean state) void
writeEmbeddedObject
(Object object) final void
final void
void
writeFieldName
(com.fasterxml.jackson.core.SerializableString name) final void
writeFieldName
(String name) void
void
writeNumber
(double d) void
writeNumber
(float f) void
writeNumber
(int i) void
writeNumber
(long l) void
writeNumber
(short i) void
writeNumber
(String encodedValue) void
writeNumber
(BigDecimal dec) void
void
writeObject
(Object value) void
writeObjectId
(Object id) void
writeRaw
(char c) void
writeRaw
(char[] text, int offset, int len) void
writeRaw
(com.fasterxml.jackson.core.SerializableString text) void
void
void
writeRawUTF8String
(byte[] text, int offset, int length) void
writeRawValue
(char[] text, int offset, int len) void
writeRawValue
(String text) void
writeRawValue
(String text, int offset, int len) final void
void
writeStartArray
(Object forValue) void
writeStartArray
(Object forValue, int size) final void
void
writeStartObject
(Object forValue) void
writeStartObject
(Object forValue, int size) void
writeString
(char[] text, int offset, int len) void
writeString
(com.fasterxml.jackson.core.SerializableString text) void
writeString
(Reader reader, int len) void
writeString
(String text) void
writeTree
(com.fasterxml.jackson.core.TreeNode node) void
writeTypeId
(Object id) void
writeUTF8String
(byte[] text, int offset, int length) Methods inherited from class com.fasterxml.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteFormattedNumbers, configure, copyCurrentEventExact, currentValue, getCharacterEscapes, getCurrentValue, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, isEnabled, overrideFormatFeatures, setCharacterEscapes, setCurrentValue, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, streamWriteConstraints, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectRef, writeOmittedField, writePOJO, writePOJOField, writeRawValue, writeStartArray, writeStringField, writeTypePrefix, writeTypeSuffix
-
Field Details
-
DEFAULT_GENERATOR_FEATURES
protected static final int DEFAULT_GENERATOR_FEATURES -
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodecObject codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods cannot be used. -
_parentContext
protected com.fasterxml.jackson.core.JsonStreamContext _parentContextParse context from "parent" parser (one from which content to buffer is read, if specified). Used, if available, when reading content, to present full context as if content was read from the original parser: this is useful in error reporting and sometimes processing as well. -
_generatorFeatures
protected int _generatorFeaturesBit flag composed of bits that indicate whichJsonGenerator.Feature
s are enabled.NOTE: most features have no effect on this class
-
_streamReadConstraints
protected com.fasterxml.jackson.core.StreamReadConstraints _streamReadConstraints- Since:
- 2.15
-
_closed
protected boolean _closed -
_hasNativeTypeIds
protected boolean _hasNativeTypeIds- Since:
- 2.3
-
_hasNativeObjectIds
protected boolean _hasNativeObjectIds- Since:
- 2.3
-
_mayHaveNativeIds
protected boolean _mayHaveNativeIds- Since:
- 2.3
-
_forceBigDecimal
protected boolean _forceBigDecimalFlag set during construction, if use ofBigDecimal
is to be forced on all floating-point values.- Since:
- 2.7
-
_first
First segment, for contents this buffer has -
_last
Last segment of this buffer, one that is used for appending more tokens -
_appendAt
protected int _appendAtOffset within last segment, -
_typeId
If native type ids supported, this is the id for following value (or first token of one) to be written. -
_objectId
If native object ids supported, this is the id for following value (or first token of one) to be written. -
_hasNativeId
protected boolean _hasNativeIdDo we currently have a native type or object id buffered? -
_writeContext
protected com.fasterxml.jackson.core.json.JsonWriteContext _writeContext
-
-
Constructor Details
-
TokenBuffer
public TokenBuffer(com.fasterxml.jackson.core.ObjectCodec codec, boolean hasNativeIds) - Parameters:
codec
- Object codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods cannot be used.hasNativeIds
- Whether resultingJsonParser
(if created) is considered to support native type and object ids
-
TokenBuffer
public TokenBuffer(com.fasterxml.jackson.core.JsonParser p) - Since:
- 2.3
-
TokenBuffer
- Since:
- 2.7
-
-
Method Details
-
asCopyOfValue
@Deprecated public static TokenBuffer asCopyOfValue(com.fasterxml.jackson.core.JsonParser p) throws IOException Deprecated.Since 2.13: useDeserializationContext.bufferAsCopyOfValue(com.fasterxml.jackson.core.JsonParser)
instead.Convenience method, equivalent to:TokenBuffer b = new TokenBuffer(p); b.copyCurrentStructure(p); return b;
- Throws:
IOException
- Since:
- 2.9
-
overrideParentContext
Method that allows explicitly specifying parent parse context to associate with contents of this buffer. Usually context is assigned at construction, based on given parser; but it is not always available, and may not contain intended context.- Since:
- 2.9
-
forceUseOfBigDecimal
- Since:
- 2.7
-
version
public com.fasterxml.jackson.core.Version version()- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Specified by:
version
in classcom.fasterxml.jackson.core.JsonGenerator
-
asParser
public com.fasterxml.jackson.core.JsonParser asParser()Method used to create aJsonParser
that can read contents stored in this buffer. Will use default_objectCodec
for object conversions.Note: instances are not synchronized, that is, they are not thread-safe if there are concurrent appends to the underlying buffer.
- Returns:
- Parser that can be used for reading contents stored in this buffer
-
asParserOnFirstToken
Same as:JsonParser p = asParser(); p.nextToken(); return p;
- Throws:
IOException
- Since:
- 2.9
-
asParser
public com.fasterxml.jackson.core.JsonParser asParser(com.fasterxml.jackson.core.ObjectCodec codec) Method used to create aJsonParser
that can read contents stored in this buffer.Note: instances are not synchronized, that is, they are not thread-safe if there are concurrent appends to the underlying buffer.
- Parameters:
codec
- Object codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods cannot be used.- Returns:
- Parser that can be used for reading contents stored in this buffer
-
asParser
public com.fasterxml.jackson.core.JsonParser asParser(com.fasterxml.jackson.core.StreamReadConstraints streamReadConstraints) - Parameters:
streamReadConstraints
- constraints for streaming reads- Since:
- v2.15
-
asParser
public com.fasterxml.jackson.core.JsonParser asParser(com.fasterxml.jackson.core.JsonParser src) - Parameters:
src
- Parser to use for accessing source information like location, configured codec, streamReadConstraints
-
firstToken
public com.fasterxml.jackson.core.JsonToken firstToken() -
isEmpty
public boolean isEmpty()Accessor for checking whether this buffer has one or more tokens or not.- Returns:
- True if this buffer instance has no tokens
- Since:
- 2.13
-
append
Helper method that will append contents of given buffer into this buffer. Not particularly optimized; can be made faster if there is need.- Returns:
- This buffer
- Throws:
IOException
-
serialize
Helper method that will write all contents of this buffer using givenJsonGenerator
.Note: this method would be enough to implement
JsonSerializer
forTokenBuffer
type; but we cannot have upwards references (from core to mapper package); and as such we also cannot take second argument.- Throws:
IOException
-
deserialize
public TokenBuffer deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws IOException Helper method used by standard deserializer.- Throws:
IOException
- Since:
- 2.3
-
toString
-
enable
public com.fasterxml.jackson.core.JsonGenerator enable(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
enable
in classcom.fasterxml.jackson.core.JsonGenerator
-
disable
public com.fasterxml.jackson.core.JsonGenerator disable(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
disable
in classcom.fasterxml.jackson.core.JsonGenerator
-
isEnabled
public boolean isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
isEnabled
in classcom.fasterxml.jackson.core.JsonGenerator
-
getFeatureMask
public int getFeatureMask()- Specified by:
getFeatureMask
in classcom.fasterxml.jackson.core.JsonGenerator
-
setFeatureMask
Deprecated.- Specified by:
setFeatureMask
in classcom.fasterxml.jackson.core.JsonGenerator
-
overrideStdFeatures
public com.fasterxml.jackson.core.JsonGenerator overrideStdFeatures(int values, int mask) - Overrides:
overrideStdFeatures
in classcom.fasterxml.jackson.core.JsonGenerator
-
useDefaultPrettyPrinter
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()- Specified by:
useDefaultPrettyPrinter
in classcom.fasterxml.jackson.core.JsonGenerator
-
setCodec
public com.fasterxml.jackson.core.JsonGenerator setCodec(com.fasterxml.jackson.core.ObjectCodec oc) - Specified by:
setCodec
in classcom.fasterxml.jackson.core.JsonGenerator
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()- Specified by:
getCodec
in classcom.fasterxml.jackson.core.JsonGenerator
-
getOutputContext
public final com.fasterxml.jackson.core.json.JsonWriteContext getOutputContext()- Specified by:
getOutputContext
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteBinaryNatively
public boolean canWriteBinaryNatively()Since we can efficiently storebyte[]
, yes.- Overrides:
canWriteBinaryNatively
in classcom.fasterxml.jackson.core.JsonGenerator
-
getWriteCapabilities
public com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability> getWriteCapabilities()- Overrides:
getWriteCapabilities
in classcom.fasterxml.jackson.core.JsonGenerator
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in classcom.fasterxml.jackson.core.JsonGenerator
-
writeStartArray
- Specified by:
writeStartArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartArray
- Overrides:
writeStartArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartArray
- Overrides:
writeStartArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeEndArray
- Specified by:
writeEndArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartObject
- Specified by:
writeStartObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartObject
- Overrides:
writeStartObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartObject
- Overrides:
writeStartObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeEndObject
- Specified by:
writeEndObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldName
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldName
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Specified by:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Specified by:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Specified by:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Overrides:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRawUTF8String
- Specified by:
writeRawUTF8String
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeUTF8String
- Specified by:
writeUTF8String
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Overrides:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRawValue
- Specified by:
writeRawValue
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRawValue
- Specified by:
writeRawValue
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRawValue
- Specified by:
writeRawValue
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Overrides:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNull
- Specified by:
writeNull
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeObject
- Specified by:
writeObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeTree
- Specified by:
writeTree
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeBinary
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws IOException - Specified by:
writeBinary
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeBinary
public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) Although we could support this method, it does not necessarily make sense: we cannot make good use of streaming because buffer must hold all the data. Because of this, currently this will simply throwUnsupportedOperationException
- Specified by:
writeBinary
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteTypeId
public boolean canWriteTypeId()- Overrides:
canWriteTypeId
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteObjectId
public boolean canWriteObjectId()- Overrides:
canWriteObjectId
in classcom.fasterxml.jackson.core.JsonGenerator
-
writeTypeId
- Overrides:
writeTypeId
in classcom.fasterxml.jackson.core.JsonGenerator
-
writeObjectId
- Overrides:
writeObjectId
in classcom.fasterxml.jackson.core.JsonGenerator
-
writeEmbeddedObject
- Overrides:
writeEmbeddedObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
copyCurrentEvent
- Overrides:
copyCurrentEvent
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
copyCurrentStructure
- Overrides:
copyCurrentStructure
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
_copyBufferContents
- Throws:
IOException
-
_appendValue
protected final void _appendValue(com.fasterxml.jackson.core.JsonToken type) Method used for appending token known to represent a "simple" scalar value where token is the only information- Since:
- 2.6.4
-
_appendValue
Method used for appending token known to represent a scalar value where there is additional content (text, number) beyond type token- Since:
- 2.6.4
-
_appendFieldName
Specialized method used for appending a field name, appending eitherString
orSerializableString
.- Since:
- 2.10
-
_appendStartMarker
protected final void _appendStartMarker(com.fasterxml.jackson.core.JsonToken type) Specialized method used for appending a structural start Object/Array marker- Since:
- 2.10
-
_appendEndMarker
protected final void _appendEndMarker(com.fasterxml.jackson.core.JsonToken type) Specialized method used for appending a structural end Object/Array marker- Since:
- 2.10
-
_reportUnsupportedOperation
protected void _reportUnsupportedOperation()- Overrides:
_reportUnsupportedOperation
in classcom.fasterxml.jackson.core.JsonGenerator
-
DeserializationContext.bufferAsCopyOfValue(com.fasterxml.jackson.core.JsonParser)
instead.