Top Description Fields Constructors Methods
tools.jackson.dataformat.avro.deser

public abstract Class AvroReadContext

extends TokenStreamContext
Class Inheritance
Known Direct Subclasses
tools.jackson.dataformat.avro.deser.AvroStructureReader, tools.jackson.dataformat.avro.deser.MissingReader, tools.jackson.dataformat.avro.deser.RootReader
Imports
java.io.IOException, tools.jackson.core.TokenStreamContext, .JsonToken, tools.jackson.core.sym.PropertyNameMatcher

We need to use a custom context to be able to carry along Object and array records.

Field Summary

Modifier and TypeField and Description
protected Object
protected JsonToken
protected final AvroReadContext
protected final String
Inherited from tools.jackson.core.TokenStreamContext:
_index_nestingDepth_typeTYPE_ARRAYTYPE_OBJECTTYPE_ROOT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected abstract void
public void
assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

public String
currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location.

public final JsonToken
public Object
currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy.

public final AvroReadContext
getParent()

Implements abstract tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

public long
public String
public abstract String
public abstract int
public abstract JsonToken
public abstract void
public final String
toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer writeable "JsonPath" representation of the context.

Inherited from tools.jackson.core.TokenStreamContext:
getCurrentIndexgetEntryCountgetNestingDepthhasCurrentIndexhasCurrentNamehasPathSegmentinArrayinObjectinRootpathAsPointerpathAsPointerstartLocationtypeDesc

Field Detail

_currentValueback to summary
protected Object _currentValue
_currTokenback to summary
protected JsonToken _currToken
_parentback to summary
protected final AvroReadContext _parent
_typeIdback to summary
protected final String _typeId

Constructor Detail

AvroReadContextback to summary
public AvroReadContext(AvroReadContext parent, String typeId)

Method Detail

_reportErrorback to summary
protected void _reportError()
Since
2.8.7 public abstract boolean isEnd() { }
appendDescback to summary
protected abstract void appendDesc(StringBuilder sb)
assignCurrentValueback to summary
public void assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Doc from tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

Annotations
@Override
currentNameback to summary
public String currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Doc from tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location. Non-null for PROPERTY_NAME and value events that directly follow Property names; null for root level and array values.

Annotations
@Override
currentTokenback to summary
public final JsonToken currentToken()
currentValueback to summary
public Object currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

Doc from tools.jackson.core.TokenStreamContext.currentValue.

Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy.

Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding.

Annotations
@Override
getParentback to summary
public final AvroReadContext getParent()

Implements abstract tools.jackson.core.TokenStreamContext.getParent.

Doc from tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

Annotations
@Override
getRemainingElementsback to summary
public long getRemainingElements()
getTypeIdback to summary
public String getTypeId()
nextNameback to summary
public abstract String nextName() throws IOException
nextNameMatchback to summary
public abstract int nextNameMatch(PropertyNameMatcher matcher) throws IOException
nextTokenback to summary
public abstract JsonToken nextToken() throws IOException
skipValueback to summary
public abstract void skipValue(AvroParserImpl parser) throws IOException
toStringback to summary
public final String toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer writeable "JsonPath" representation of the context.

Annotations
@Override