Class FromXmlParser
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonParser
-
- com.fasterxml.jackson.core.base.ParserMinimalBase
-
- com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,ElementWrappable,java.io.Closeable,java.lang.AutoCloseable
public class FromXmlParser extends com.fasterxml.jackson.core.base.ParserMinimalBase implements ElementWrappable
JsonParserimplementation that exposes XML structure as set of JSON events that can be used for data binding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFromXmlParser.FeatureEnumeration that defines all togglable features for XML parsers.
-
Field Summary
Fields Modifier and Type Field Description protected byte[]_binaryValueWe will hold on to decoded binary data, for duration of current event, so that multiple calls togetBinaryValue(com.fasterxml.jackson.core.Base64Variant)will not need to decode data more than once.protected com.fasterxml.jackson.core.util.ByteArrayBuilder_byteArrayBuilderByteArrayBuilder is needed if 'getBinaryValue' is called.protected java.lang.String_cfgNameForTextElementIn 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_closedFlag that indicates whether parser is closed or not.protected java.lang.String_currTextprotected int_formatFeaturesBit flag composed of bits that indicate whichFromXmlParser.Features are enabled.protected com.fasterxml.jackson.core.io.IOContext_ioContextprotected boolean_mayBeLeafWe need special handling to keep track of whether a value may be exposed as simple leaf value.protected boolean_nextIsLeadingMixedAdditional flag that is strictly needed when exposing "mixed" leading String value as "anonymous" property/string pair.protected com.fasterxml.jackson.core.JsonToken_nextTokenprotected java.math.BigInteger_numberBigIntprotected int_numberIntprotected long_numberLongprotected int_numTypesValidBitfield that indicates which numeric representations have been calculated for the current typeprotected com.fasterxml.jackson.core.ObjectCodec_objectCodecprotected XmlReadContext_parsingContextInformation about parser context, context in which the next token is to be parsed (root, array, object).protected com.fasterxml.jackson.core.StreamReadConstraints_streamReadConstraintsprotected XmlTokenStream_xmlTokensstatic java.lang.StringDEFAULT_UNNAMED_TEXT_PROPERTYThe default name placeholder for XML text segments is empty String ("").protected static com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability>XML_READ_CAPABILITIESXML format has some peculiarities, indicated via new (2.12) capability system.-
Fields inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_currToken, _lastClearedToken, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_TAB, MAX_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description FromXmlParser(com.fasterxml.jackson.core.io.IOContext ctxt, int genericParserFeatures, int xmlFeatures, com.fasterxml.jackson.core.ObjectCodec codec, javax.xml.stream.XMLStreamReader xmlReader, XmlNameProcessor tagProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void_checkNumericValue(int expType)protected java.math.BigDecimal_convertNumberToBigDecimal()protected void_convertNumberToBigInteger()protected double_convertNumberToDouble()protected float_convertNumberToFloat()protected void_convertNumberToInt()protected void_convertNumberToLong()protected byte[]_decodeBase64(com.fasterxml.jackson.core.Base64Variant b64variant)protected com.fasterxml.jackson.core.util.ByteArrayBuilder_getByteArrayBuilder()protected void_handleEOF()Method called when an EOF is encountered between tokens.private <T> T_internalErrorUnknownToken(java.lang.Object token)protected int_isIntNumber(java.lang.String text)protected int_nextToken()protected void_releaseBuffers()Method called to release internal buffers owned by the base parser.protected void_skipEndElement()private void_updateState(com.fasterxml.jackson.core.JsonToken t)voidaddVirtualWrapping(java.util.Set<java.lang.String> namesToWrap0, boolean caseInsensitive)Method that may be called to indicate that specified names (only local parts retained currently: this may be changed in future) should be considered "auto-wrapping", meaning that they will be doubled to contain two opening elements, two matching closing elements.booleancanReadObjectId()booleancanReadTypeId()voidclose()FromXmlParserconfigure(FromXmlParser.Feature f, boolean state)com.fasterxml.jackson.core.JsonLocationcurrentLocation()Method that returns location of the last processed character; usually for error reporting purposesjava.lang.StringcurrentName()Method that can be called to get the name associated with the current event.com.fasterxml.jackson.core.JsonLocationcurrentTokenLocation()Method that return the starting location of the current token; that is, position of the first character from input that starts the current token.FromXmlParserdisable(FromXmlParser.Feature f)FromXmlParserenable(FromXmlParser.Feature f)java.math.BigIntegergetBigIntegerValue()byte[]getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant)com.fasterxml.jackson.core.ObjectCodecgetCodec()com.fasterxml.jackson.core.JsonLocationgetCurrentLocation()Deprecated.java.lang.StringgetCurrentName()Deprecated.java.math.BigDecimalgetDecimalValue()doublegetDoubleValue()java.lang.ObjectgetEmbeddedObject()floatgetFloatValue()intgetFormatFeatures()intgetIntValue()longgetLongValue()com.fasterxml.jackson.core.JsonParser.NumberTypegetNumberType()com.fasterxml.jackson.core.JsonParser.NumberTypeFPgetNumberTypeFP()XML has no notion of natural/native floating-point type (has to be provided externally via Schema or so), so need to ensure we indicate that.java.lang.NumbergetNumberValue()XmlReadContextgetParsingContext()com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability>getReadCapabilities()javax.xml.stream.XMLStreamReadergetStaxReader()Method that allows application direct access to underlying StaxXMLStreamWriter.java.lang.StringgetText()intgetText(java.io.Writer writer)char[]getTextCharacters()intgetTextLength()intgetTextOffset()com.fasterxml.jackson.core.JsonLocationgetTokenLocation()Deprecated.booleanhasTextCharacters()XML input actually would offer access to character arrays; but since we must coalesce things it cannot really be exposed.booleanisClosed()booleanisEnabled(FromXmlParser.Feature f)booleanisExpectedNumberIntToken()Since xml representation can not really distinguish between different scalar types (numbers, booleans) -- they are all just Character Data, without schema -- we can try to infer type from intent here.booleanisExpectedStartArrayToken()Since xml representation can not really distinguish between array and object starts (both are represented with elements), this method is overridden and taken to mean that expecation is that the current start element is to mean 'start array', instead of default of 'start object'.booleanisNaN()java.lang.StringnextTextValue()Method overridden to support more reliable deserialization of String collections.com.fasterxml.jackson.core.JsonTokennextToken()voidoverrideCurrentName(java.lang.String name)com.fasterxml.jackson.core.JsonParseroverrideFormatFeatures(int values, int mask)booleanrequiresCustomCodec()XML format does require support from customObjectCodec(that is,XmlMapper), so need to return true here.voidsetCodec(com.fasterxml.jackson.core.ObjectCodec c)voidsetXMLTextElementName(java.lang.String name)com.fasterxml.jackson.core.StreamReadConstraintsstreamReadConstraints()com.fasterxml.jackson.core.Versionversion()-
Methods inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_ascii, _asciiBytes, _constructError, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _throwInternalReturnAny, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren
-
Methods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, assignCurrentValue, canParseAsync, canUseSchema, configure, currentValue, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getInputSource, getNonBlockingInputFeeder, getNumberValueDeferred, getNumberValueExact, getObjectId, getSchema, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchema
-
-
-
-
Field Detail
-
DEFAULT_UNNAMED_TEXT_PROPERTY
public static final java.lang.String DEFAULT_UNNAMED_TEXT_PROPERTY
The default name placeholder for XML text segments is empty String ("").- See Also:
- Constant Field Values
-
XML_READ_CAPABILITIES
protected static final com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> XML_READ_CAPABILITIES
XML format has some peculiarities, indicated via new (2.12) capability system.- Since:
- 2.12
-
_cfgNameForTextElement
protected java.lang.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.Name used for pseudo-property used for returning XML Text value (which does not have actual element name to use). Defaults to empty String, but may be changed for inter-operability reasons: JAXB, for example, uses "value" as name.
- Since:
- 2.1
-
_formatFeatures
protected int _formatFeatures
Bit flag composed of bits that indicate whichFromXmlParser.Features are enabled.
-
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodec
-
_ioContext
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
-
_streamReadConstraints
protected final com.fasterxml.jackson.core.StreamReadConstraints _streamReadConstraints
- Since:
- 2.15
-
_closed
protected boolean _closed
Flag that indicates whether parser is closed or not. Gets set when parser is either closed by explicit call (close()) or when end-of-input is reached.
-
_parsingContext
protected XmlReadContext _parsingContext
Information about parser context, context in which the next token is to be parsed (root, array, object).
-
_xmlTokens
protected final XmlTokenStream _xmlTokens
-
_mayBeLeaf
protected boolean _mayBeLeaf
We need special handling to keep track of whether a value may be exposed as simple leaf value.
-
_nextToken
protected com.fasterxml.jackson.core.JsonToken _nextToken
-
_currText
protected java.lang.String _currText
-
_nextIsLeadingMixed
protected boolean _nextIsLeadingMixed
Additional flag that is strictly needed when exposing "mixed" leading String value as "anonymous" property/string pair. If so, code returns START_OBJECT first, sets_nextTokento beFIELD_NAMEand sets this flag to indicate use of "anonymous" marker.- Since:
- 2.13
-
_byteArrayBuilder
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
ByteArrayBuilder is needed if 'getBinaryValue' is called. If so, we better reuse it for remainder of content.
-
_binaryValue
protected byte[] _binaryValue
We will hold on to decoded binary data, for duration of current event, so that multiple calls togetBinaryValue(com.fasterxml.jackson.core.Base64Variant)will not need to decode data more than once.
-
_numTypesValid
protected int _numTypesValid
Bitfield that indicates which numeric representations have been calculated for the current type
-
_numberInt
protected int _numberInt
-
_numberLong
protected long _numberLong
-
_numberBigInt
protected java.math.BigInteger _numberBigInt
-
-
Constructor Detail
-
FromXmlParser
public FromXmlParser(com.fasterxml.jackson.core.io.IOContext ctxt, int genericParserFeatures, int xmlFeatures, com.fasterxml.jackson.core.ObjectCodec codec, javax.xml.stream.XMLStreamReader xmlReader, XmlNameProcessor tagProcessor) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.core.JsonParser
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()
- Specified by:
getCodecin classcom.fasterxml.jackson.core.JsonParser
-
setCodec
public void setCodec(com.fasterxml.jackson.core.ObjectCodec c)
- Specified by:
setCodecin classcom.fasterxml.jackson.core.JsonParser
-
setXMLTextElementName
public void setXMLTextElementName(java.lang.String name)
- Since:
- 2.1
-
requiresCustomCodec
public boolean requiresCustomCodec()
XML format does require support from customObjectCodec(that is,XmlMapper), so need to return true here.- Overrides:
requiresCustomCodecin classcom.fasterxml.jackson.core.JsonParser- Returns:
- True since XML format does require support from codec
-
canReadObjectId
public boolean canReadObjectId()
- Overrides:
canReadObjectIdin classcom.fasterxml.jackson.core.JsonParser
-
canReadTypeId
public boolean canReadTypeId()
- Overrides:
canReadTypeIdin classcom.fasterxml.jackson.core.JsonParser
-
getReadCapabilities
public com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> getReadCapabilities()
- Overrides:
getReadCapabilitiesin classcom.fasterxml.jackson.core.JsonParser
-
enable
public FromXmlParser enable(FromXmlParser.Feature f)
-
disable
public FromXmlParser disable(FromXmlParser.Feature f)
-
isEnabled
public final boolean isEnabled(FromXmlParser.Feature f)
-
configure
public FromXmlParser configure(FromXmlParser.Feature f, boolean state)
-
streamReadConstraints
public com.fasterxml.jackson.core.StreamReadConstraints streamReadConstraints()
- Overrides:
streamReadConstraintsin classcom.fasterxml.jackson.core.JsonParser
-
getFormatFeatures
public int getFormatFeatures()
- Overrides:
getFormatFeaturesin classcom.fasterxml.jackson.core.JsonParser
-
overrideFormatFeatures
public com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values, int mask)- Overrides:
overrideFormatFeaturesin classcom.fasterxml.jackson.core.JsonParser
-
getStaxReader
public javax.xml.stream.XMLStreamReader getStaxReader()
Method that allows application direct access to underlying StaxXMLStreamWriter. Note that use of writer is discouraged, and may interfere with processing of this writer; however, occasionally it may be necessary.Note: writer instance will always be of type
XMLStreamWriter2(including Typed Access API) so upcasts are safe.
-
addVirtualWrapping
public void addVirtualWrapping(java.util.Set<java.lang.String> namesToWrap0, boolean caseInsensitive)Description copied from interface:ElementWrappableMethod that may be called to indicate that specified names (only local parts retained currently: this may be changed in future) should be considered "auto-wrapping", meaning that they will be doubled to contain two opening elements, two matching closing elements. This is needed for supporting handling of so-called "unwrapped" array types, something XML mappings like JAXB often use.- Specified by:
addVirtualWrappingin interfaceElementWrappable
-
currentName
public java.lang.String currentName() throws java.io.IOExceptionMethod that can be called to get the name associated with the current event.- Overrides:
currentNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getCurrentName
@Deprecated public java.lang.String getCurrentName() throws java.io.IOExceptionDeprecated.- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
overrideCurrentName
public void overrideCurrentName(java.lang.String name)
- Specified by:
overrideCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getParsingContext
public XmlReadContext getParsingContext()
- Specified by:
getParsingContextin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
currentTokenLocation
public com.fasterxml.jackson.core.JsonLocation currentTokenLocation()
Method that return the starting location of the current token; that is, position of the first character from input that starts the current token.- Overrides:
currentTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
currentLocation
public com.fasterxml.jackson.core.JsonLocation currentLocation()
Method that returns location of the last processed character; usually for error reporting purposes- Overrides:
currentLocationin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentLocation
@Deprecated public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
Deprecated.- Specified by:
getCurrentLocationin classcom.fasterxml.jackson.core.JsonParser
-
getTokenLocation
@Deprecated public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
Deprecated.- Specified by:
getTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
isExpectedStartArrayToken
public boolean isExpectedStartArrayToken()
Since xml representation can not really distinguish between array and object starts (both are represented with elements), this method is overridden and taken to mean that expecation is that the current start element is to mean 'start array', instead of default of 'start object'.- Overrides:
isExpectedStartArrayTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
isExpectedNumberIntToken
public boolean isExpectedNumberIntToken()
Since xml representation can not really distinguish between different scalar types (numbers, booleans) -- they are all just Character Data, without schema -- we can try to infer type from intent here. The main benefit is avoiding checks for coercion.- Overrides:
isExpectedNumberIntTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
nextToken
public com.fasterxml.jackson.core.JsonToken nextToken() throws java.io.IOException- Specified by:
nextTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
nextTextValue
public java.lang.String nextTextValue() throws java.io.IOExceptionMethod overridden to support more reliable deserialization of String collections.- Overrides:
nextTextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_updateState
private void _updateState(com.fasterxml.jackson.core.JsonToken t)
-
getText
public java.lang.String getText() throws java.io.IOException- Specified by:
getTextin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextCharacters
public char[] getTextCharacters() throws java.io.IOException- Specified by:
getTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextLength
public int getTextLength() throws java.io.IOException- Specified by:
getTextLengthin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextOffset
public int getTextOffset() throws java.io.IOException- Specified by:
getTextOffsetin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
XML input actually would offer access to character arrays; but since we must coalesce things it cannot really be exposed.- Specified by:
hasTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getText
public int getText(java.io.Writer writer) throws java.io.IOException- Overrides:
getTextin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getEmbeddedObject
public java.lang.Object getEmbeddedObject() throws java.io.IOException- Overrides:
getEmbeddedObjectin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBinaryValue
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant) throws java.io.IOException- Specified by:
getBinaryValuein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
_decodeBase64
protected byte[] _decodeBase64(com.fasterxml.jackson.core.Base64Variant b64variant) throws java.io.IOException- Throws:
java.io.IOException
-
isNaN
public boolean isNaN()
- Overrides:
isNaNin classcom.fasterxml.jackson.core.JsonParser
-
getNumberType
public com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() throws java.io.IOException- Specified by:
getNumberTypein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberTypeFP
public com.fasterxml.jackson.core.JsonParser.NumberTypeFP getNumberTypeFP() throws java.io.IOExceptionXML has no notion of natural/native floating-point type (has to be provided externally via Schema or so), so need to ensure we indicate that.- Overrides:
getNumberTypeFPin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberValue
public java.lang.Number getNumberValue() throws java.io.IOException- Specified by:
getNumberValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getIntValue
public int getIntValue() throws java.io.IOException- Specified by:
getIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getLongValue
public long getLongValue() throws java.io.IOException- Specified by:
getLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBigIntegerValue
public java.math.BigInteger getBigIntegerValue() throws java.io.IOException- Specified by:
getBigIntegerValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getFloatValue
public float getFloatValue() throws java.io.IOException- Specified by:
getFloatValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDoubleValue
public double getDoubleValue() throws java.io.IOException- Specified by:
getDoubleValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDecimalValue
public java.math.BigDecimal getDecimalValue() throws java.io.IOException- Specified by:
getDecimalValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_checkNumericValue
protected final void _checkNumericValue(int expType) throws java.io.IOException- Throws:
java.io.IOException
-
_isIntNumber
protected final int _isIntNumber(java.lang.String text)
-
_convertNumberToInt
protected void _convertNumberToInt() throws java.io.IOException- Throws:
java.io.IOException
-
_convertNumberToLong
protected void _convertNumberToLong() throws java.io.IOException- Throws:
java.io.IOException
-
_convertNumberToBigInteger
protected void _convertNumberToBigInteger() throws java.io.IOException- Throws:
java.io.IOException
-
_convertNumberToFloat
protected float _convertNumberToFloat() throws java.io.IOException- Throws:
java.io.IOException
-
_convertNumberToDouble
protected double _convertNumberToDouble() throws java.io.IOException- Throws:
java.io.IOException
-
_convertNumberToBigDecimal
protected java.math.BigDecimal _convertNumberToBigDecimal() throws java.io.IOException- Throws:
java.io.IOException
-
_handleEOF
protected void _handleEOF() throws com.fasterxml.jackson.core.JsonParseExceptionMethod called when an EOF is encountered between tokens. If so, it may be a legitimate EOF, but only iff there is no open non-root context.- Specified by:
_handleEOFin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
com.fasterxml.jackson.core.JsonParseException
-
_releaseBuffers
protected void _releaseBuffers() throws java.io.IOExceptionMethod called to release internal buffers owned by the base parser.- Throws:
java.io.IOException
-
_getByteArrayBuilder
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder()
-
_internalErrorUnknownToken
private <T> T _internalErrorUnknownToken(java.lang.Object token)
-
_nextToken
protected int _nextToken() throws java.io.IOException- Throws:
java.io.IOException
-
_skipEndElement
protected void _skipEndElement() throws java.io.IOException- Throws:
java.io.IOException
-
-