com.fasterxml.jackson.dataformat.avro.deser

## Class AvroStructureReader

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

- Direct Known Subclasses:
    MapReader

      public abstract class AvroStructureReader
      extends AvroReadContext

  Base class for handlers for Avro structured types (or, in case of root values, wrapped scalar values).

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected com.fasterxml.jackson.core.JsonToken` | `_currToken`

    - ### Fields inherited from class com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext

      `_parent`

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

      `_index, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AvroStructureReader(AvroReadContext parent, int type)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected <T> T` | `_throwUnsupported()`
    `com.fasterxml.jackson.core.JsonToken` | `getCurrentToken()`
    `abstract AvroStructureReader` | `newReader(AvroReadContext parent, AvroParserImpl parser, org.apache.avro.io.BinaryDecoder decoder)` Method for creating actual instance to use for reading (initial instance constructed is so-called blue print).
    `abstract com.fasterxml.jackson.core.JsonToken` | `nextToken()`
    `protected void` | `throwIllegalState(int state)`

    - ### Methods inherited from class com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext

      `_reportError, appendDesc, getCurrentName, getParent, nextFieldName, toString`

    - ### 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

    - #### _currToken

          protected com.fasterxml.jackson.core.JsonToken _currToken

  - ### Constructor Detail

    - #### AvroStructureReader

          protected AvroStructureReader(AvroReadContext parent,
                             int type)

  - ### Method Detail

    - #### newReader

          public abstract AvroStructureReader newReader(AvroReadContext parent,
                                      AvroParserImpl parser,
                                      org.apache.avro.io.BinaryDecoder decoder)

      Method for creating actual instance to use for reading (initial instance constructed is so-called blue print).

    - #### nextToken

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

      Specified by:
        `nextToken` in class `AvroReadContext`
      Throws:
        `IOException`

    - #### getCurrentToken

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

      Specified by:
        `getCurrentToken` in class `AvroReadContext`

    - #### throwIllegalState

          protected void throwIllegalState(int state)

    - #### _throwUnsupported

          protected <T> T _throwUnsupported()

Copyright © 2016 FasterXML. All rights reserved.