Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.deser

pack-priv final Class ScalarDecoderWrapper

extends AvroStructureReader
Class Inheritance
Imports
java.io.IOException, com.fasterxml.jackson.core.JsonToken

Simple adapter needed in some cases to unify handling of reading (and skipping) of structured and scalar values.

Field Summary

Modifier and TypeField and Description
private final AvroParserImpl
private final ScalarDecoder
_valueDecoder

Actual decoder used to decode scalar value, wrapped by this reader.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_currToken

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
protected void
public String
public ScalarDecoderWrapper
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

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

public String
public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_throwUnsupportedconsumesNoContentgetCurrentTokenthrowIllegalState

Field Detail

_parserback to summary
private final AvroParserImpl _parser
_valueDecoderback to summary
private final ScalarDecoder _valueDecoder

Actual decoder used to decode scalar value, wrapped by this reader.

Constructor Detail

ScalarDecoderWrapperback to summary
public ScalarDecoderWrapper(ScalarDecoder wrappedReader)
ScalarDecoderWrapperback to summary
private ScalarDecoderWrapper(AvroReadContext parent, AvroParserImpl parser, ScalarDecoder valueDecoder)

Method Detail

appendDescback to summary
protected void appendDesc(StringBuilder sb)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.appendDesc.

Annotations
@Override
getTypeIdback to summary
public String getTypeId()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getTypeId.

Annotations
@Override
newReaderback to summary
public ScalarDecoderWrapper newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

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

Annotations
@Override
nextFieldNameback to summary
public String nextFieldName() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.nextFieldName.

Annotations
@Override
nextTokenback to summary
public JsonToken nextToken() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.nextToken.

Annotations
@Override
skipValueback to summary
public void skipValue(AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override