Class YAMLParser
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonParser
-
- com.fasterxml.jackson.core.base.ParserMinimalBase
-
- com.fasterxml.jackson.core.base.ParserBase
-
- com.fasterxml.jackson.dataformat.yaml.YAMLParser
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
YAMLAnchorReplayingParser
public class YAMLParser extends com.fasterxml.jackson.core.base.ParserBaseJsonParserimplementation used to expose YAML documents in form that allows other Jackson functionality to process YAML content, such as binding POJOs to and from it, and building tree representations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYAMLParser.FeatureEnumeration that defines all togglable features for YAML parsers.
-
Field Summary
Fields Modifier and Type Field Description protected boolean_cfgEmptyStringsToNullprotected java.lang.String_cleanedTextValueFor some tokens (specifically, numbers), we'll have cleaned up version, mostly free of underscoresprotected java.lang.String_currentAnchorAnchor for the value that parser currently points to: in case of structured types, value whose first token current token is.protected java.lang.String_currentFieldNameLet's also have a local copy of the current field nameprotected boolean_currentIsAliasFlag that is set when current token was derived from an Alias (reference to another value's anchor)protected int_formatFeaturesprotected org.yaml.snakeyaml.events.Event_lastEventKeep track of the last event read, to get access to Location infoprotected org.yaml.snakeyaml.events.Event_lastTagEventTo keep track of tags ("type ids"), need to either get tags for all events, or, keep tag of relevant event that might have it: this is different from_lastEventin some cases.protected com.fasterxml.jackson.core.ObjectCodec_objectCodecCodec used for data binding when (if) requested.protected java.io.Reader_readerNeed to keep track of underlyingReaderto be able to auto-close it (if required to)protected java.lang.String_textValueWe need to keep track of text values.protected org.yaml.snakeyaml.parser.ParserImpl_yamlParserprotected org.yaml.snakeyaml.resolver.Resolver_yamlResolver-
Fields inherited from class com.fasterxml.jackson.core.base.ParserBase
_binaryValue, _byteArrayBuilder, _closed, _currInputProcessed, _currInputRow, _currInputRowStart, _expLength, _fractLength, _inputEnd, _inputPtr, _intLength, _ioContext, _nameCopied, _nameCopyBuffer, _nextToken, _numberBigDecimal, _numberBigInt, _numberDouble, _numberFloat, _numberInt, _numberIsNaN, _numberLong, _numberNegative, _numberString, _numTypesValid, _parsingContext, _textBuffer, _tokenInputCol, _tokenInputRow, _tokenInputTotal, JSON_READ_CAPABILITIES
-
Fields inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_currToken, _lastClearedToken, _streamReadConstraints, _tokenCount, _trackMaxTokenCount, 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_RS, 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 Modifier Constructor Description protectedYAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int formatFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader, org.yaml.snakeyaml.parser.ParserImpl yamlParser)Constructor to overload by custom parser sub-classes that want to replaceParserImplpassed.YAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int formatFeatures, org.yaml.snakeyaml.LoaderOptions loaderOptions, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)YAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, com.fasterxml.jackson.core.util.BufferRecycler br, int parserFeatures, int formatFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)Deprecated.since 2.14, use other constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private java.lang.String_cleanUnderscores(java.lang.String str, int i, int len)private com.fasterxml.jackson.core.JsonToken_cleanYamlFloat(java.lang.String str)private com.fasterxml.jackson.core.JsonToken_cleanYamlInt(java.lang.String str)Helper method used to clean up YAML integer value so it can be parsed using standard JDK classes.protected void_closeInput()private java.math.BigInteger_decodeBigInt(java.lang.String numStr, int base)private com.fasterxml.jackson.core.JsonToken_decodeFromBigInteger(java.math.BigInteger unsignedValue, boolean negative)private com.fasterxml.jackson.core.JsonToken_decodeFromLong(long unsignedValue, boolean negative, boolean checkIfInt)private int_decodeInt(java.lang.String str, int base)private long_decodeLong(java.lang.String str, int base)protected com.fasterxml.jackson.core.JsonToken_decodeNumberIntBinary(java.lang.String value, int i, int origLen, boolean negative)protected com.fasterxml.jackson.core.JsonToken_decodeNumberIntHex(java.lang.String value, int i, int origLen, boolean negative)protected com.fasterxml.jackson.core.JsonToken_decodeNumberIntOctal(java.lang.String value, int i, int origLen, boolean negative)protected com.fasterxml.jackson.core.JsonToken_decodeNumberScalar(java.lang.String value, int len)protected com.fasterxml.jackson.core.JsonToken_decodeScalar(org.yaml.snakeyaml.events.ScalarEvent scalar)protected com.fasterxml.jackson.core.JsonLocation_locationFor(org.yaml.snakeyaml.error.Mark m)protected java.lang.Boolean_matchYAMLBoolean(java.lang.String value, int len)protected int_parseIntValue()protected void_parseNumericValue(int expType)private <T> T_reportInvalidNumber(java.lang.String str, int base, java.lang.Exception e)booleancanReadObjectId()booleancanReadTypeId()com.fasterxml.jackson.core.JsonParserconfigure(YAMLParser.Feature f, boolean state)Method for enabling or disabling specified CSV feature (checkYAMLParser.Featurefor list of features)com.fasterxml.jackson.core.JsonLocationcurrentLocation()java.lang.StringcurrentName()com.fasterxml.jackson.core.JsonLocationcurrentTokenLocation()com.fasterxml.jackson.core.JsonParserdisable(YAMLParser.Feature f)Method for disabling specified CSV feature (checkYAMLParser.Featurefor list of features)com.fasterxml.jackson.core.JsonParserenable(YAMLParser.Feature f)Method for enabling specified CSV feature (checkYAMLParser.Featurefor list of features)com.fasterxml.jackson.core.ObjectCodecgetCodec()java.lang.StringgetCurrentAnchor()Deprecated.Since 2.3 (was added in 2.1) -- usegetObjectId()insteadcom.fasterxml.jackson.core.JsonLocationgetCurrentLocation()Deprecated.java.lang.StringgetCurrentName()Deprecated.java.lang.ObjectgetEmbeddedObject()protected org.yaml.snakeyaml.events.EventgetEvent()Since the parserImpl cannot be replaced allow subclasses to at least be able to influence the events being consumed.intgetFormatFeatures()com.fasterxml.jackson.core.JsonParser.NumberTypeFPgetNumberTypeFP()java.lang.ObjectgetNumberValueDeferred()java.lang.StringgetObjectId()com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability>getReadCapabilities()java.lang.StringgetText()intgetText(java.io.Writer writer)char[]getTextCharacters()intgetTextLength()intgetTextOffset()com.fasterxml.jackson.core.JsonLocationgetTokenLocation()Deprecated.java.lang.StringgetTypeId()booleanhasTextCharacters()booleanisCurrentAlias()Method that can be used to check whether current token was created from YAML Alias token (reference to an anchor).booleanisEnabled(YAMLParser.Feature f)Method for checking whether specified CSVYAMLParser.Featureis enabled.com.fasterxml.jackson.core.JsonTokennextToken()com.fasterxml.jackson.core.JsonParseroverrideFormatFeatures(int values, int mask)intreadBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.OutputStream out)booleanrequiresCustomCodec()voidsetCodec(com.fasterxml.jackson.core.ObjectCodec c)com.fasterxml.jackson.core.Versionversion()-
Methods inherited from class com.fasterxml.jackson.core.base.ParserBase
_checkStdFeatureChanges, _contentReference, _contentReferenceRedacted, _convertBigDecimalToBigInteger, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _finishString, _getBigDecimal, _getBigInteger, _getByteArrayBuilder, _getNumberDouble, _getNumberFloat, _getSourceReference, _growNameDecodeBuffer, _handleBase64MissingPadding, _handleEOF, _handleUnrecognizedCharacterEscape, _releaseBuffers, _reportExtraEndMarker, _reportMismatchedEndMarker, _reportTooLongIntegral, _throwUnquotedSpace, _validJsonTokenList, _validJsonValueList, assignCurrentValue, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToFloat, convertNumberToInt, convertNumberToLong, createChildArrayContext, createChildObjectContext, currentValue, disable, enable, getBigIntegerValue, getBinaryValue, getDecimalValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberType, getNumberValue, getNumberValueExact, getParsingContext, getTokenCharacterOffset, getTokenColumnNr, getTokenLineNr, growArrayBy, isClosed, isNaN, loadMore, loadMoreGuaranteed, overrideCurrentName, overrideStdFeatures, reportInvalidBase64Char, reportInvalidBase64Char, reset, resetAsNaN, resetFloat, resetInt, setFeatureMask
-
Methods inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_ascii, _asciiBytes, _constructError, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _nullSafeUpdateToken, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _throwInternalReturnAny, _throwInvalidSpace, _updateToken, _updateTokenToNA, _updateTokenToNull, _wrapError, clearCurrentToken, currentToken, currentTokenCount, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren, streamReadConstraints
-
Methods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, canParseAsync, canUseSchema, configure, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getInputSource, getNonBlockingInputFeeder, getSchema, getShortValue, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setCurrentValue, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchema
-
-
-
-
Field Detail
-
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodec
Codec used for data binding when (if) requested.
-
_formatFeatures
protected int _formatFeatures
-
_cfgEmptyStringsToNull
protected boolean _cfgEmptyStringsToNull
-
_reader
protected final java.io.Reader _reader
Need to keep track of underlyingReaderto be able to auto-close it (if required to)
-
_yamlParser
protected final org.yaml.snakeyaml.parser.ParserImpl _yamlParser
-
_yamlResolver
protected final org.yaml.snakeyaml.resolver.Resolver _yamlResolver
-
_lastEvent
protected org.yaml.snakeyaml.events.Event _lastEvent
Keep track of the last event read, to get access to Location info
-
_lastTagEvent
protected org.yaml.snakeyaml.events.Event _lastTagEvent
To keep track of tags ("type ids"), need to either get tags for all events, or, keep tag of relevant event that might have it: this is different from_lastEventin some cases.- Since:
- 2.12
-
_textValue
protected java.lang.String _textValue
We need to keep track of text values.
-
_cleanedTextValue
protected java.lang.String _cleanedTextValue
For some tokens (specifically, numbers), we'll have cleaned up version, mostly free of underscores
-
_currentFieldName
protected java.lang.String _currentFieldName
Let's also have a local copy of the current field name
-
_currentIsAlias
protected boolean _currentIsAlias
Flag that is set when current token was derived from an Alias (reference to another value's anchor)- Since:
- 2.1
-
_currentAnchor
protected java.lang.String _currentAnchor
Anchor for the value that parser currently points to: in case of structured types, value whose first token current token is.
-
-
Constructor Detail
-
YAMLParser
@Deprecated public YAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, com.fasterxml.jackson.core.util.BufferRecycler br, int parserFeatures, int formatFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)Deprecated.since 2.14, use other constructor
-
YAMLParser
public YAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int formatFeatures, org.yaml.snakeyaml.LoaderOptions loaderOptions, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)
-
YAMLParser
protected YAMLParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int formatFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader, org.yaml.snakeyaml.parser.ParserImpl yamlParser)Constructor to overload by custom parser sub-classes that want to replaceParserImplpassed.- Since:
- 2.18
-
-
Method Detail
-
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
-
isCurrentAlias
public boolean isCurrentAlias()
Method that can be used to check whether current token was created from YAML Alias token (reference to an anchor).- Since:
- 2.1
-
getCurrentAnchor
@Deprecated public java.lang.String getCurrentAnchor()
Deprecated.Since 2.3 (was added in 2.1) -- usegetObjectId()insteadMethod that can be used to check if the current token has an associated anchor (id to reference via Alias)
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Overrides:
versionin classcom.fasterxml.jackson.core.base.ParserBase
-
requiresCustomCodec
public boolean requiresCustomCodec()
- Overrides:
requiresCustomCodecin classcom.fasterxml.jackson.core.JsonParser
-
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
-
_closeInput
protected void _closeInput() throws java.io.IOException- Specified by:
_closeInputin classcom.fasterxml.jackson.core.base.ParserBase- Throws:
java.io.IOException
-
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
-
enable
public com.fasterxml.jackson.core.JsonParser enable(YAMLParser.Feature f)
Method for enabling specified CSV feature (checkYAMLParser.Featurefor list of features)
-
disable
public com.fasterxml.jackson.core.JsonParser disable(YAMLParser.Feature f)
Method for disabling specified CSV feature (checkYAMLParser.Featurefor list of features)
-
configure
public com.fasterxml.jackson.core.JsonParser configure(YAMLParser.Feature f, boolean state)
Method for enabling or disabling specified CSV feature (checkYAMLParser.Featurefor list of features)
-
isEnabled
public boolean isEnabled(YAMLParser.Feature f)
Method for checking whether specified CSVYAMLParser.Featureis enabled.
-
currentLocation
public com.fasterxml.jackson.core.JsonLocation currentLocation()
- Overrides:
currentLocationin classcom.fasterxml.jackson.core.JsonParser
-
currentTokenLocation
public com.fasterxml.jackson.core.JsonLocation currentTokenLocation()
- Overrides:
currentTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentLocation
@Deprecated public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
Deprecated.- Overrides:
getCurrentLocationin classcom.fasterxml.jackson.core.base.ParserBase
-
getTokenLocation
@Deprecated public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
Deprecated.- Overrides:
getTokenLocationin classcom.fasterxml.jackson.core.base.ParserBase
-
_locationFor
protected com.fasterxml.jackson.core.JsonLocation _locationFor(org.yaml.snakeyaml.error.Mark m)
-
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
-
getEvent
protected org.yaml.snakeyaml.events.Event getEvent() throws java.io.IOExceptionSince the parserImpl cannot be replaced allow subclasses to at least be able to influence the events being consumed.A particular use case is working around the lack of anchor and alias support to emit additional events.
NOTE: since 2.18, declared to throw
IOExceptionto allow sub-classes to do so.- Throws:
java.io.IOException- Since:
- 2.18
-
_decodeScalar
protected com.fasterxml.jackson.core.JsonToken _decodeScalar(org.yaml.snakeyaml.events.ScalarEvent scalar) throws java.io.IOException- Throws:
java.io.IOException
-
_matchYAMLBoolean
protected java.lang.Boolean _matchYAMLBoolean(java.lang.String value, int len)
-
_decodeNumberScalar
protected com.fasterxml.jackson.core.JsonToken _decodeNumberScalar(java.lang.String value, int len) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeNumberIntBinary
protected com.fasterxml.jackson.core.JsonToken _decodeNumberIntBinary(java.lang.String value, int i, int origLen, boolean negative) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeNumberIntOctal
protected com.fasterxml.jackson.core.JsonToken _decodeNumberIntOctal(java.lang.String value, int i, int origLen, boolean negative) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeNumberIntHex
protected com.fasterxml.jackson.core.JsonToken _decodeNumberIntHex(java.lang.String value, int i, int origLen, boolean negative) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeFromLong
private com.fasterxml.jackson.core.JsonToken _decodeFromLong(long unsignedValue, boolean negative, boolean checkIfInt)
-
_decodeFromBigInteger
private com.fasterxml.jackson.core.JsonToken _decodeFromBigInteger(java.math.BigInteger unsignedValue, boolean negative)
-
_decodeInt
private int _decodeInt(java.lang.String str, int base) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeLong
private long _decodeLong(java.lang.String str, int base) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeBigInt
private java.math.BigInteger _decodeBigInt(java.lang.String numStr, int base) throws java.io.IOException- Throws:
java.io.IOException
-
_reportInvalidNumber
private <T> T _reportInvalidNumber(java.lang.String str, int base, java.lang.Exception e) throws java.io.IOException- Throws:
java.io.IOException
-
currentName
public java.lang.String currentName() throws java.io.IOException- Overrides:
currentNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getCurrentName
@Deprecated public java.lang.String getCurrentName() throws java.io.IOExceptionDeprecated.- Overrides:
getCurrentNamein classcom.fasterxml.jackson.core.base.ParserBase- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
- Overrides:
hasTextCharactersin classcom.fasterxml.jackson.core.base.ParserBase
-
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
-
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
-
readBinaryValue
public int readBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.OutputStream out) throws java.io.IOException- Overrides:
readBinaryValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberTypeFP
public com.fasterxml.jackson.core.JsonParser.NumberTypeFP getNumberTypeFP() throws java.io.IOException- Overrides:
getNumberTypeFPin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberValueDeferred
public java.lang.Object getNumberValueDeferred() throws java.io.IOException- Overrides:
getNumberValueDeferredin classcom.fasterxml.jackson.core.base.ParserBase- Throws:
java.io.IOException
-
_parseNumericValue
protected void _parseNumericValue(int expType) throws java.io.IOException- Overrides:
_parseNumericValuein classcom.fasterxml.jackson.core.base.ParserBase- Throws:
java.io.IOException
-
_parseIntValue
protected int _parseIntValue() throws java.io.IOException- Overrides:
_parseIntValuein classcom.fasterxml.jackson.core.base.ParserBase- Throws:
java.io.IOException
-
getObjectId
public java.lang.String getObjectId() throws java.io.IOException- Overrides:
getObjectIdin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getTypeId
public java.lang.String getTypeId() throws java.io.IOException- Overrides:
getTypeIdin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_cleanYamlInt
private com.fasterxml.jackson.core.JsonToken _cleanYamlInt(java.lang.String str) throws java.io.IOExceptionHelper method used to clean up YAML integer value so it can be parsed using standard JDK classes. Currently this just means stripping out optional underscores.- Throws:
java.io.IOException
-
_cleanUnderscores
private java.lang.String _cleanUnderscores(java.lang.String str, int i, int len)
-
_cleanYamlFloat
private com.fasterxml.jackson.core.JsonToken _cleanYamlFloat(java.lang.String str)
-
-