Package org.apache.avro.io
package org.apache.avro.io
-
ClassDescriptionThis class is a wrapper of
BinaryDecoder
with the following optimization: When deserializing byte array field, instead of copying the bytes into a newByteBuffer
, this class will create a ByteBuffer, which is wrapping the original array.This class overridesJsonEncoder.writeBytes(byte[], int, int)
, in order to convert all bytes schema data to hexadecimal strings in the output stream, since hexadecimal strings are more readable.This class is used to optimize bytes field decoding.