JsonParser implementation that exposes XML structure as
set of JSON events that can be used for data binding.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | FromXmlParser.Feature
Enumeration that defines all togglable features for XML parsers. |
| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | _binaryValue
We will hold on to decoded binary data, for duration of
current event, so that multiple calls to
|
| protected ByteArrayBuilder | _byteArrayBuilder
ByteArrayBuilder is needed if 'getBinaryValue' is called. |
| protected String | _cfgNameForTextElement
In cases where a start element has both attributes and non-empty textual value, we have to create a bogus property; we will use this as the property name. |
| protected boolean | _closed
Flag that indicates whether parser is closed or not. |
| protected String | |
| protected int | _formatFeatures
Bit flag composed of bits that indicate which
|
| protected final IOContext | |
| protected boolean | _mayBeLeaf
We need special handling to keep track of whether a value may be exposed as simple leaf value. |
| protected boolean | _nextIsLeadingMixed
Additional flag that is strictly needed when exposing "mixed" leading String value as "anonymous" property/string pair. |
| protected JsonToken | |
| protected BigInteger | |
| protected int | |
| protected long | |
| protected int | _numTypesValid
Bitfield that indicates which numeric representations have been calculated for the current type |
| protected ObjectCodec | |
| protected XmlReadContext | _parsingContext
Information about parser context, context in which the next token is to be parsed (root, array, object). |
| protected final StreamReadConstraints | |
| protected final XmlTokenStream | |
| public static final String | DEFAULT_UNNAMED_TEXT_PROPERTY
The default name placeholder for XML text segments is empty String (""). |
| protected static final JacksonFeatureSet | XML_READ_CAPABILITIES
XML format has some peculiarities, indicated via new (2.12) capability system. |
| Access | Constructor and Description |
|---|---|
| public | FromXmlParser(IOContext ctxt, int genericParserFeatures, int xmlFeatures, ObjectCodec codec, XMLStreamReader xmlReader, XmlNameProcessor tagProcessor)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected BigDecimal | |
| protected void | |
| protected double | |
| protected float | |
| protected void | |
| protected void | |
| protected byte[] | |
| protected ByteArrayBuilder | |
| protected void | _handleEOF()
Implements abstract com. |
| private <T> T | |
| protected final int | |
| protected int | |
| protected void | |
| protected void | |
| private void | |
| public void | addVirtualWrapping(Set<String> namesToWrap0, boolean caseInsensitive)
Implements com. |
| public boolean | canReadObjectId()
Overrides com. |
| public boolean | canReadTypeId()
Overrides com. |
| public void | close()
Implements abstract com. Implements java. Feature#AUTO_CLOSE_SOURCE is enabled.
|
| public FromXmlParser | |
| public FromXmlParser | |
| public FromXmlParser | |
| public BigInteger | getBigIntegerValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can not be used as a Java long primitive type due to its
magnitude.
|
| public byte[] | getBinaryValue(Base64Variant
Expected variant of base64 encoded
content (see b64variant)Base64Variants for definitions
of "standard" variants).Implements abstract com. |
| public ObjectCodec | getCodec()
Implements abstract com. ObjectCodec associated with this
parser, if any.
|
| public JsonLocation | getCurrentLocation()
Implements abstract com. |
| public String | getCurrentName()
Implements abstract com. |
| public BigDecimal | getDecimalValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT or
JsonToken#VALUE_NUMBER_INT.
|
| public double | getDoubleValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT and
it can be expressed as a Java double primitive type.
|
| public Object | getEmbeddedObject()
Overrides com. JsonToken#VALUE_EMBEDDED_OBJECT.
|
| public float | getFloatValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT and
it can be expressed as a Java float primitive type.
|
| public int | getFormatFeatures()
Overrides com. FormatFeatures, format-specific
on/off configuration settings.
|
| public int | getIntValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can be expressed as a value of Java int primitive type.
|
| public long | getLongValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can be expressed as a Java long primitive type.
|
| public JsonParser. | getNumberType()
Implements abstract com. JsonToken#VALUE_NUMBER_INT or
JsonToken#VALUE_NUMBER_FLOAT, returns
one of NumberType constants; otherwise returns null.
|
| public Number | getNumberValue()
Implements abstract com. |
| public XmlReadContext | getParsingContext()
Implements abstract com. |
| public JacksonFeatureSet | getReadCapabilities()
Overrides com. |
| public XMLStreamReader | |
| public String | getText()
Implements abstract com. nextToken, or
after encountering end-of-input), returns null.
|
| public int | |
| public char[] | getTextCharacters()
Implements abstract com. getText, but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information.
|
| public int | getTextLength()
Implements abstract com. getTextCharacters, to know length
of String stored in returned buffer.
|
| public int | getTextOffset()
Implements abstract com. getTextCharacters, to know offset
of the first text content character within buffer.
|
| public JsonLocation | getTokenLocation()
Implements abstract com. |
| public boolean | hasTextCharacters()
Implements abstract com. |
| public boolean | isClosed()
Implements abstract com. |
| public final boolean | |
| public boolean | isExpectedNumberIntToken()
Overrides com. |
| public boolean | isExpectedStartArrayToken()
Overrides com. |
| public boolean | isNaN()
Overrides com. JsonToken#VALUE_NUMBER_FLOAT.
|
| public String | nextTextValue()
Overrides com. |
| public JsonToken | nextToken()
Implements abstract com. |
| public void | overrideCurrentName(String
Name to use as the current name; may be null. name)Implements abstract com. |
| public JsonParser | overrideFormatFeatures(int
Bit mask of set/clear state for features to change values, int Bit mask of features to change mask)Overrides com. FormatFeatures,
by specifying values (set / clear) along with a mask, to determine
which features to change, if any.
|
| public boolean | Returns: True since XML format does require support from codecOverrides com. ObjectCodec
(that is, XmlMapper), so need to return true here.
|
| public void | setCodec(ObjectCodec
Codec to assign, if any; c)null if noneImplements abstract com. ObjectCodec associated with this
parser, if any.
|
| public void | |
| public StreamReadConstraints | streamReadConstraints()
Overrides com. |
| public Version | version()
Implements abstract com. Implements com. |