public class YAMLParser
extends com.fasterxml.jackson.core.base.ParserBase
JsonParser implementation 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.| Modifier and Type | Class and Description | 
|---|---|
| static class  | YAMLParser.FeatureEnumeration that defines all togglable features for YAML parsers. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected String | _currentAnchorAnchor for the value that parser currently points to: in case of
 structured types, value whose first token current token is. | 
| protected String | _currentFieldNameLet's also have a local copy of the current field name | 
| protected boolean | _currentIsAliasFlag that is set when current token was derived from an Alias
 (reference to another value's anchor) | 
| protected int | _formatFeatures | 
| protected org.yaml.snakeyaml.events.Event | _lastEventKeep track of the last event read, to get access to Location info | 
| protected com.fasterxml.jackson.core.ObjectCodec | _objectCodecCodec used for data binding when (if) requested. | 
| protected Reader | _readerNeed to keep track of underlying  Readerto be able to
 auto-close it (if required to) | 
| protected String | _textValueWe need to keep track of text values. | 
| protected org.yaml.snakeyaml.parser.ParserImpl | _yamlParser | 
| protected org.yaml.snakeyaml.resolver.Resolver | _yamlResolver | 
_binaryValue, _byteArrayBuilder, _closed, _currInputProcessed, _currInputRow, _currInputRowStart, _expLength, _fractLength, _inputEnd, _inputPtr, _intLength, _ioContext, _nameCopied, _nameCopyBuffer, _nextToken, _numberBigDecimal, _numberBigInt, _numberDouble, _numberInt, _numberLong, _numberNegative, _numTypesValid, _parsingContext, _textBuffer, _tokenInputCol, _tokenInputRow, _tokenInputTotal_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 and Description | 
|---|
| 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,
          Reader reader) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | _closeInput() | 
| protected com.fasterxml.jackson.core.JsonToken | _decodeNumberScalar(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 Boolean | _matchYAMLBoolean(String value,
                 int len) | 
| protected int | _parseIntValue() | 
| protected void | _parseNumericValue(int expType) | 
| boolean | canReadObjectId() | 
| boolean | canReadTypeId() | 
| com.fasterxml.jackson.core.JsonParser | configure(YAMLParser.Feature f,
         boolean state)Method for enabling or disabling specified CSV feature
 (check  YAMLParser.Featurefor list of features) | 
| com.fasterxml.jackson.core.JsonParser | disable(YAMLParser.Feature f)Method for disabling specified  CSV feature
 (check  YAMLParser.Featurefor list of features) | 
| com.fasterxml.jackson.core.JsonParser | enable(YAMLParser.Feature f)Method for enabling specified CSV feature
 (check  YAMLParser.Featurefor list of features) | 
| byte[] | getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant) | 
| com.fasterxml.jackson.core.ObjectCodec | getCodec() | 
| String | getCurrentAnchor()Deprecated. 
 Since 2.3 (was added in 2.1) -- use  getObjectId()instead | 
| com.fasterxml.jackson.core.JsonLocation | getCurrentLocation() | 
| String | getCurrentName() | 
| Object | getEmbeddedObject() | 
| int | getFormatFeatures() | 
| String | getObjectId() | 
| String | getText() | 
| int | getText(Writer writer) | 
| char[] | getTextCharacters() | 
| int | getTextLength() | 
| int | getTextOffset() | 
| com.fasterxml.jackson.core.JsonLocation | getTokenLocation() | 
| String | getTypeId() | 
| boolean | hasTextCharacters() | 
| boolean | isCurrentAlias()Method that can be used to check whether current token was
 created from YAML Alias token (reference to an anchor). | 
| boolean | isEnabled(YAMLParser.Feature f)Method for checking whether specified CSV  YAMLParser.Featureis enabled. | 
| com.fasterxml.jackson.core.JsonToken | nextToken() | 
| com.fasterxml.jackson.core.JsonParser | overrideFormatFeatures(int values,
                      int mask) | 
| void | setCodec(com.fasterxml.jackson.core.ObjectCodec c) | 
| com.fasterxml.jackson.core.Version | version() | 
_checkStdFeatureChanges, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _finishString, _getByteArrayBuilder, _getSourceReference, _handleEOF, _releaseBuffers, _reportMismatchedEndMarker, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToInt, convertNumberToLong, disable, enable, getBigIntegerValue, getCurrentValue, getDecimalValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberType, getNumberValue, getParsingContext, getTokenCharacterOffset, getTokenColumnNr, getTokenLineNr, growArrayBy, isClosed, isNaN, loadMore, loadMoreGuaranteed, overrideCurrentName, overrideStdFeatures, reportInvalidBase64Char, reportInvalidBase64Char, reset, resetAsNaN, resetFloat, resetInt, setCurrentValue, setFeatureMask_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _handleUnrecognizedCharacterEscape, _hasTextualNull, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _throwUnquotedSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowLong, reportUnexpectedNumberChar, skipChildren_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canUseSchema, configure, finishToken, getBinaryValue, getBooleanValue, getByteValue, getFeatureMask, getInputSource, getNonBlockingInputFeeder, getSchema, getShortValue, getValueAsBoolean, getValueAsDouble, isEnabled, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, requiresCustomCodec, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchemaprotected com.fasterxml.jackson.core.ObjectCodec _objectCodec
protected int _formatFeatures
protected final Reader _reader
Reader to be able to
 auto-close it (if required to)protected final org.yaml.snakeyaml.parser.ParserImpl _yamlParser
protected final org.yaml.snakeyaml.resolver.Resolver _yamlResolver
protected org.yaml.snakeyaml.events.Event _lastEvent
protected String _textValue
protected String _currentFieldName
protected boolean _currentIsAlias
protected String _currentAnchor
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,
          Reader reader)
public com.fasterxml.jackson.core.ObjectCodec getCodec()
getCodec in class com.fasterxml.jackson.core.JsonParserpublic void setCodec(com.fasterxml.jackson.core.ObjectCodec c)
setCodec in class com.fasterxml.jackson.core.JsonParserpublic boolean isCurrentAlias()
@Deprecated public String getCurrentAnchor()
getObjectId() insteadpublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.base.ParserBaseprotected void _closeInput()
                    throws IOException
_closeInput in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic int getFormatFeatures()
getFormatFeatures in class com.fasterxml.jackson.core.JsonParserpublic com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values,
                                                           int mask)
overrideFormatFeatures in class com.fasterxml.jackson.core.JsonParserpublic com.fasterxml.jackson.core.JsonParser enable(YAMLParser.Feature f)
YAMLParser.Feature for list of features)public com.fasterxml.jackson.core.JsonParser disable(YAMLParser.Feature f)
YAMLParser.Feature for list of features)public com.fasterxml.jackson.core.JsonParser configure(YAMLParser.Feature f, boolean state)
YAMLParser.Feature for list of features)public boolean isEnabled(YAMLParser.Feature f)
YAMLParser.Feature
 is enabled.public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
getTokenLocation in class com.fasterxml.jackson.core.base.ParserBasepublic com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
getCurrentLocation in class com.fasterxml.jackson.core.base.ParserBaseprotected com.fasterxml.jackson.core.JsonLocation _locationFor(org.yaml.snakeyaml.error.Mark m)
public com.fasterxml.jackson.core.JsonToken nextToken()
                                               throws IOException
nextToken in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionprotected com.fasterxml.jackson.core.JsonToken _decodeScalar(org.yaml.snakeyaml.events.ScalarEvent scalar)
protected com.fasterxml.jackson.core.JsonToken _decodeNumberScalar(String value, int len)
public boolean hasTextCharacters()
hasTextCharacters in class com.fasterxml.jackson.core.base.ParserBasepublic String getText() throws IOException
getText in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic String getCurrentName() throws IOException
getCurrentName in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic char[] getTextCharacters()
                         throws IOException
getTextCharacters in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getTextLength()
                  throws IOException
getTextLength in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getTextOffset()
                  throws IOException
getTextOffset in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getText(Writer writer) throws IOException
getText in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic Object getEmbeddedObject() throws IOException
getEmbeddedObject in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant)
                      throws IOException
getBinaryValue in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected void _parseNumericValue(int expType)
                           throws IOException
_parseNumericValue in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected int _parseIntValue()
                      throws IOException
_parseIntValue in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic boolean canReadObjectId()
canReadObjectId in class com.fasterxml.jackson.core.JsonParserpublic boolean canReadTypeId()
canReadTypeId in class com.fasterxml.jackson.core.JsonParserpublic String getObjectId() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
getObjectId in class com.fasterxml.jackson.core.JsonParserIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic String getTypeId() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
getTypeId in class com.fasterxml.jackson.core.JsonParserIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionCopyright © 2017 FasterXML. All rights reserved.