java.lang.Object
tools.jackson.core.JsonGenerator
tools.jackson.databind.util.TokenBuffer
tools.jackson.dataformat.xml.deser.XmlTokenBuffer
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,tools.jackson.core.Versioned
public class XmlTokenBuffer
extends tools.jackson.databind.util.TokenBuffer
XML-specific
TokenBuffer sub-class that ensures parsers created
from buffered content implement ElementWrappable, allowing
virtual wrapping to be configured even when content has been buffered
(e.g., during polymorphic type resolution or @JsonUnwrapped handling).- Since:
- 3.2
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.util.TokenBuffer
tools.jackson.databind.util.TokenBuffer.Parser, tools.jackson.databind.util.TokenBuffer.Segment -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ElementWrappableReference to the original XML parser that implementsElementWrappable, if one was found when this buffer was created.Fields inherited from class tools.jackson.databind.util.TokenBuffer
_appendAt, _closed, _first, _forceBigDecimal, _hasNativeId, _hasNativeObjectIds, _hasNativeTypeIds, _last, _mayHaveNativeIds, _objectId, _objectWriteContext, _parentContext, _streamReadConstraints, _streamWriteFeatures, _tokenWriteContext, _typeId, BOGUS_WRITE_CAPABILITIES, DEFAULT_STREAM_WRITE_FEATURES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmlTokenBuffer(tools.jackson.core.JsonParser p, tools.jackson.core.ObjectReadContext ctxt) -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.core.JsonParser_wrapIfNeeded(tools.jackson.core.JsonParser p) tools.jackson.core.JsonParserasParser(tools.jackson.core.ObjectReadContext readCtxt) tools.jackson.core.JsonParserasParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.JsonParser p0) static XmlTokenBufferxmlBufferForInputBuffering(tools.jackson.core.JsonParser p, tools.jackson.core.ObjectReadContext ctxt) Methods inherited from class tools.jackson.databind.util.TokenBuffer
_appendEndMarker, _appendName, _appendStartMarker, _appendValue, _appendValue, _copyBufferContents, _reportUnsupportedOperation, append, asParser, asParserOnFirstToken, asParserOnFirstToken, assignCurrentValue, canWriteObjectId, canWriteTypeId, close, configure, copyCurrentEvent, copyCurrentStructure, currentValue, deserialize, firstToken, flush, forBuffering, forceUseOfBigDecimal, forGeneration, getCharacterEscapes, getHighestNonEscapedChar, getPrettyPrinter, getSchema, has, isClosed, isEmpty, isEnabled, objectWriteContext, overrideParentContext, serialize, streamWriteCapabilities, streamWriteContext, streamWriteFeatures, streamWriteOutputBuffered, streamWriteOutputTarget, toString, version, writeBinary, writeBinary, writeBoolean, writeEmbeddedObject, writeEndArray, writeEndObject, writeName, writeName, writeNull, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeObjectId, writePOJO, writePropertyId, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeRawValue, writeRawValue, writeRawValue, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeStartObject, writeString, writeString, writeString, writeString, writeTree, writeTypeId, writeUTF8StringMethods inherited from class tools.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentContentsExact, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportArgumentError, _reportError, _reportUnsupportedOperation, _verifyOffsets, _wrapIOFailure, _writeTypePrefixUsingNative, _writeTypePrefixUsingWrapper, canOmitProperties, canWriteComments, copyCurrentEventExact, copyCurrentStructureExact, setCharacterEscapes, streamWriteConstraints, writeArray, writeArray, writeArray, writeArray, writeArrayPropertyStart, writeBinary, writeBinary, writeBinary, writeBinaryProperty, writeBooleanProperty, writeComment, writeNullProperty, writeNumber, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeObjectPropertyStart, writeObjectRef, writeOmittedProperty, writePOJOProperty, writeRawValue, writeStringProperty, writeTypePrefix, writeTypeSuffix
-
Field Details
-
_wrappableParser
Reference to the original XML parser that implementsElementWrappable, if one was found when this buffer was created.
-
-
Constructor Details
-
XmlTokenBuffer
protected XmlTokenBuffer(tools.jackson.core.JsonParser p, tools.jackson.core.ObjectReadContext ctxt)
-
-
Method Details
-
xmlBufferForInputBuffering
public static XmlTokenBuffer xmlBufferForInputBuffering(tools.jackson.core.JsonParser p, tools.jackson.core.ObjectReadContext ctxt) -
asParser
public tools.jackson.core.JsonParser asParser(tools.jackson.core.ObjectReadContext readCtxt) - Overrides:
asParserin classtools.jackson.databind.util.TokenBuffer
-
asParser
public tools.jackson.core.JsonParser asParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.JsonParser p0) - Overrides:
asParserin classtools.jackson.databind.util.TokenBuffer
-
_wrapIfNeeded
protected tools.jackson.core.JsonParser _wrapIfNeeded(tools.jackson.core.JsonParser p)
-