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

pack-priv final Class ScalarDecoderWrapper

extends AvroStructureReader
Class Inheritance
Imports
java.io.IOException, tools.jackson.core.JsonToken, tools.jackson.core.sym.PropertyNameMatcher

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.

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 tools.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 int
public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from tools.jackson.dataformat.avro.deser.AvroStructureReader:
_throwUnsupportedconsumesNoContentthrowIllegalState

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 tools.jackson.dataformat.avro.deser.AvroReadContext.appendDesc.

Annotations
@Override
getTypeIdback to summary
public String getTypeId()

Overrides tools.jackson.dataformat.avro.deser.AvroReadContext.getTypeId.

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

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Doc from tools.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

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

Annotations
@Override
nextNameback to summary
public String nextName() throws IOException

Implements abstract tools.jackson.dataformat.avro.deser.AvroReadContext.nextName.

Annotations
@Override
nextNameMatchback to summary
public int nextNameMatch(PropertyNameMatcher matcher) throws IOException

Implements abstract tools.jackson.dataformat.avro.deser.AvroReadContext.nextNameMatch.

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

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.nextToken.

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

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Doc from tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override