java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
tools.jackson.core.base.ParserBase
tools.jackson.dataformat.avro.AvroParser
- All Implemented Interfaces:
Closeable,AutoCloseable,tools.jackson.core.Versioned
- Direct Known Subclasses:
AvroParserImpl
public abstract class AvroParser
extends tools.jackson.core.base.ParserBase
JsonParser implementation for decoding Avro content and
exposing at as a stream of JsonTokens, to be used
for data binding.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JsonParser
tools.jackson.core.JsonParser.NumberType, tools.jackson.core.JsonParser.NumberTypeFP -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AvroReadContextprotected intprotected AvroSchemaprotected tools.jackson.core.util.SimpleStreamReadContextInformation about parser context, context in which the next token is to be parsed (root, array, object).protected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability>Fields inherited from class tools.jackson.core.base.ParserBase
_binaryValue, _byteArrayBuilder, _currInputProcessed, _currInputRow, _currInputRowStart, _expLength, _fractLength, _inputEnd, _inputPtr, _intLength, _numberBigDecimal, _numberBigInt, _numberDouble, _numberFloat, _numberInt, _numberIsNaN, _numberLong, _numberNegative, _numberString, _numTypesValid, _textBuffer, _tokenInputCol, _tokenInputRow, _tokenInputTotalFields inherited from class tools.jackson.core.base.ParserMinimalBase
_closed, _currToken, _ioContext, _lastClearedToken, _objectReadContext, _streamReadConstraints, _streamReadFeatures, _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_BYTE_I, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MAX_SHORT_I, MIN_BYTE_I, MIN_INT_D, MIN_INT_L, MIN_LONG_D, MIN_SHORT_I, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN, STREAM_READ_FEATURE_DEFAULTSFields inherited from class tools.jackson.core.JsonParser
DEFAULT_READ_CAPABILITIES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAvroParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected abstract void_initSchema(AvroSchema schema) protected intprotected void_parseNumericValue(int expType) voidbooleantools.jackson.core.JsonParserconfigure(AvroReadFeature f, boolean state) Method for enabling or disabling specified Avro feature (checkAvroReadFeaturefor list of features)tools.jackson.core.TokenStreamLocationtools.jackson.core.TokenStreamLocationtools.jackson.core.JsonParserMethod for disabling specified Avro feature (checkAvroReadFeaturefor list of features)tools.jackson.core.JsonParserMethod for enabling specified Avro feature (checkAvroReadFeaturefor list of features)byte[]getBinaryValue(tools.jackson.core.Base64Variant variant) abstract Stringabstract intchar[]intintabstract booleanbooleanMethod for checking whether specified AvroAvroReadFeatureis enabled.protected voidsetSchema(AvroSchema schema) tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability>tools.jackson.core.TokenStreamContextabstract Objecttools.jackson.core.Versionversion()Methods inherited from class tools.jackson.core.base.ParserBase
_contentReference, _contentReferenceRedacted, _convertBigDecimalToBigInteger, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _getBigDecimal, _getBigInteger, _getByteArrayBuilder, _getNumberDouble, _getNumberFloat, _growNameDecodeBuffer, _handleBase64MissingPadding, _handleEOF, _releaseBuffers, _reportInvalidBase64Char, _reportInvalidBase64Char, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToFloat, convertNumberToInt, convertNumberToLong, getBigIntegerValue, getDecimalValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberType, getNumberValue, getNumberValueDeferred, getNumberValueExact, getTokenCharacterOffset, getTokenColumnNr, getTokenLineNr, growArrayBy, isNaN, reset, resetAsNaN, resetFloat, resetIntMethods inherited from class tools.jackson.core.base.ParserMinimalBase
_constructInputCoercion, _constructNotNumericType, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _nullSafeUpdateToken, _reportBadInputStream, _reportBadReader, _reportError, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidNumber, _reportInvalidSpace, _reportInvalidUTF8Surrogate, _reportMissingRootWS, _reportOverflowByte, _reportOverflowInt, _reportOverflowInt, _reportOverflowInt, _reportOverflowLong, _reportOverflowLong, _reportOverflowLong, _reportOverflowShort, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _updateToken, _updateTokenToNA, _updateTokenToNull, _wrapIOFailure, clearCurrentToken, currentNameMatch, currentToken, currentTokenCount, currentTokenId, finishToken, getBooleanValue, getByteValue, getLastClearedToken, getNumberTypeFP, getShortValue, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isClosed, isEnabled, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextName, nextName, nextNameMatch, nextValue, objectReadContext, readValueAs, readValueAs, readValueAs, readValueAsTree, skipChildren, streamReadConstraints, streamReadFeaturesMethods inherited from class tools.jackson.core.JsonParser
_constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, canParseAsync, canReadObjectId, getBinaryValue, getObjectId, getText, getTextCharacters, getTextLength, getTextOffset, getValueAsBoolean, getValueAsDouble, nextBooleanValue, nextIntValue, nextLongValue, nextStringValue, nextToken, nonBlockingInputFeeder, readBinaryValue, readBinaryValue, readString, releaseBuffered, releaseBuffered
-
Field Details
-
AVRO_READ_CAPABILITIES
protected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> AVRO_READ_CAPABILITIES -
_rootSchema
-
_formatFeatures
protected int _formatFeatures -
_streamReadContext
protected tools.jackson.core.util.SimpleStreamReadContext _streamReadContextInformation about parser context, context in which the next token is to be parsed (root, array, object). -
_avroContext
-
-
Constructor Details
-
AvroParser
protected AvroParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures)
-
-
Method Details
-
streamReadInputSource
- Specified by:
streamReadInputSourcein classtools.jackson.core.JsonParser
-
version
public tools.jackson.core.Version version()- Specified by:
versionin interfacetools.jackson.core.Versioned- Specified by:
versionin classtools.jackson.core.JsonParser
-
canReadTypeId
public boolean canReadTypeId()- Overrides:
canReadTypeIdin classtools.jackson.core.JsonParser
-
streamReadCapabilities
public tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> streamReadCapabilities()- Overrides:
streamReadCapabilitiesin classtools.jackson.core.base.ParserMinimalBase
-
streamReadContext
public tools.jackson.core.TokenStreamContext streamReadContext()- Specified by:
streamReadContextin classtools.jackson.core.JsonParser
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.base.ParserBase
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.base.ParserBase
-
_closeInput
- Specified by:
_closeInputin classtools.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
enable
Method for enabling specified Avro feature (checkAvroReadFeaturefor list of features) -
disable
Method for disabling specified Avro feature (checkAvroReadFeaturefor list of features) -
configure
Method for enabling or disabling specified Avro feature (checkAvroReadFeaturefor list of features) -
isEnabled
Method for checking whether specified AvroAvroReadFeatureis enabled. -
getSchema
- Overrides:
getSchemain classtools.jackson.core.JsonParser
-
setSchema
- Throws:
tools.jackson.core.JacksonException
-
_initSchema
- Throws:
tools.jackson.core.JacksonException
-
getTypeId
- Overrides:
getTypeIdin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
currentTokenLocation
public tools.jackson.core.TokenStreamLocation currentTokenLocation()- Specified by:
currentTokenLocationin classtools.jackson.core.JsonParser
-
currentLocation
public tools.jackson.core.TokenStreamLocation currentLocation()- Specified by:
currentLocationin classtools.jackson.core.JsonParser
-
hasStringCharacters
public abstract boolean hasStringCharacters()- Overrides:
hasStringCharactersin classtools.jackson.core.base.ParserBase
-
getString
- Specified by:
getStringin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getString
- Overrides:
getStringin classtools.jackson.core.base.ParserMinimalBase- Throws:
tools.jackson.core.JacksonException
-
currentName
- Specified by:
currentNamein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getStringCharacters
public char[] getStringCharacters() throws tools.jackson.core.JacksonException- Specified by:
getStringCharactersin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getStringLength
public int getStringLength() throws tools.jackson.core.JacksonException- Specified by:
getStringLengthin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getStringOffset
public int getStringOffset() throws tools.jackson.core.JacksonException- Specified by:
getStringOffsetin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getEmbeddedObject
- Overrides:
getEmbeddedObjectin classtools.jackson.core.base.ParserMinimalBase- Throws:
tools.jackson.core.JacksonException
-
getBinaryValue
public byte[] getBinaryValue(tools.jackson.core.Base64Variant variant) throws tools.jackson.core.JacksonException - Overrides:
getBinaryValuein classtools.jackson.core.base.ParserBase- Throws:
tools.jackson.core.JacksonException
-
_parseNumericValue
protected void _parseNumericValue(int expType) throws tools.jackson.core.JacksonException - Specified by:
_parseNumericValuein classtools.jackson.core.base.ParserBase- Throws:
tools.jackson.core.JacksonException
-
_parseIntValue
protected int _parseIntValue() throws tools.jackson.core.JacksonException- Specified by:
_parseIntValuein classtools.jackson.core.base.ParserBase- Throws:
tools.jackson.core.JacksonException
-