Class AvroReadContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.avro.deser.AvroReadContext
- Direct Known Subclasses:
AvroStructureReader,MissingReader,RootReader
public abstract class AvroReadContext
extends tools.jackson.core.TokenStreamContext
We need to use a custom context to be able to carry along
Object and array records.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected tools.jackson.core.JsonTokenprotected final AvroReadContextprotected final StringFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract voidvoidfinal tools.jackson.core.JsonTokenfinal AvroReadContextlongabstract StringnextName()abstract intnextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher) abstract tools.jackson.core.JsonTokenabstract voidskipValue(AvroParserImpl parser) final StringtoString()Overridden to provide developer writeable "JsonPath" representation of the context.Methods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
_parent
-
_typeId
-
_currToken
protected tools.jackson.core.JsonToken _currToken -
_currentValue
-
-
Constructor Details
-
AvroReadContext
-
-
Method Details
-
nextToken
- Throws:
IOException
-
nextName
- Throws:
IOException
-
nextNameMatch
public abstract int nextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher) throws IOException - Throws:
IOException
-
skipValue
- Throws:
IOException
-
getRemainingElements
public long getRemainingElements() -
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
currentToken
public final tools.jackson.core.JsonToken currentToken() -
getParent
- Specified by:
getParentin classtools.jackson.core.TokenStreamContext
-
appendDesc
-
getTypeId
-
_reportError
protected void _reportError()- Since:
- 2.8.7 public abstract boolean isEnd() { }
-
toString
Overridden to provide developer writeable "JsonPath" representation of the context.- Overrides:
toStringin classtools.jackson.core.TokenStreamContext
-