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 Details

    • _parent

      protected final AvroReadContext _parent
    • _typeId

      protected final String _typeId
    • _currToken

      protected tools.jackson.core.JsonToken _currToken
    • _currentValue

      protected Object _currentValue
  • Constructor Details

  • Method Details

    • nextToken

      public abstract tools.jackson.core.JsonToken nextToken() throws IOException
      Throws:
      IOException
    • nextName

      public abstract String nextName() throws IOException
      Throws:
      IOException
    • nextNameMatch

      public abstract int nextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher) throws IOException
      Throws:
      IOException
    • skipValue

      public abstract void skipValue(AvroParserImpl parser) throws IOException
      Throws:
      IOException
    • getRemainingElements

      public long getRemainingElements()
    • currentValue

      public Object currentValue()
      Overrides:
      currentValue in class tools.jackson.core.TokenStreamContext
    • assignCurrentValue

      public void assignCurrentValue(Object v)
      Overrides:
      assignCurrentValue in class tools.jackson.core.TokenStreamContext
    • currentName

      public String currentName()
      Specified by:
      currentName in class tools.jackson.core.TokenStreamContext
    • currentToken

      public final tools.jackson.core.JsonToken currentToken()
    • getParent

      public final AvroReadContext getParent()
      Specified by:
      getParent in class tools.jackson.core.TokenStreamContext
    • appendDesc

      protected abstract void appendDesc(StringBuilder sb)
    • getTypeId

      public String getTypeId()
    • _reportError

      protected void _reportError()
      Since:
      2.8.7 public abstract boolean isEnd() { }
    • toString

      public final String toString()
      Overridden to provide developer writeable "JsonPath" representation of the context.
      Overrides:
      toString in class tools.jackson.core.TokenStreamContext