com.fasterxml.jackson.dataformat.avro.deser

## Class AvroReadContext

- java.lang.Object
- - com.fasterxml.jackson.core.JsonStreamContext
  - - com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext

- Direct Known Subclasses:
    AvroStructureReader, MissingReader, RootReader

      public abstract class AvroReadContext
      extends com.fasterxml.jackson.core.JsonStreamContext

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected AvroReadContext` | `_parent`

    - ### Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext

      `_index, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AvroReadContext(AvroReadContext parent)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `_reportError()`
    `protected abstract void` | `appendDesc(StringBuilder sb)`
    `String` | `getCurrentName()`
    `abstract com.fasterxml.jackson.core.JsonToken` | `getCurrentToken()`
    `AvroReadContext` | `getParent()`
    `abstract String` | `nextFieldName()`
    `abstract com.fasterxml.jackson.core.JsonToken` | `nextToken()`
    `String` | `toString()` Overridden to provide developer writeable "JsonPath" representation of the context.

    - ### Methods inherited from class com.fasterxml.jackson.core.JsonStreamContext

      `getCurrentIndex, getCurrentValue, getEntryCount, getTypeDesc, inArray, inObject, inRoot, setCurrentValue, typeDesc`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### _parent

          protected final AvroReadContext _parent

  - ### Constructor Detail

    - #### AvroReadContext

          public AvroReadContext(AvroReadContext parent)

  - ### Method Detail

    - #### nextToken

          public abstract com.fasterxml.jackson.core.JsonToken nextToken()
                                                                  throws IOException

      Throws:
        `IOException`

    - #### nextFieldName

          public abstract String nextFieldName()
                                        throws IOException

      Throws:
        `IOException`

    - #### getCurrentName

          public String getCurrentName()

      Specified by:
        `getCurrentName` in class `com.fasterxml.jackson.core.JsonStreamContext`

    - #### getCurrentToken

          public abstract com.fasterxml.jackson.core.JsonToken getCurrentToken()

    - #### getParent

          public final AvroReadContext getParent()

      Specified by:
        `getParent` in class `com.fasterxml.jackson.core.JsonStreamContext`

    - #### appendDesc

          protected abstract void appendDesc(StringBuilder sb)

    - #### _reportError

          protected void _reportError()

    - #### toString

          public final String toString()

      Overridden to provide developer writeable "JsonPath" representation of the context.
      Overrides:
        `toString` in class `Object`

Copyright © 2016 FasterXML. All rights reserved.