-
- All Implemented Interfaces:
public final class ByteArrayAdapter extends ScaleCodecAdapter<ByteArray>
An adapter to handle read and write operations for ByteArray
-
-
Constructor Summary
Constructors Constructor Description ByteArrayAdapter(ScaleCodecAdapterProvider adapterResolver)
-
Method Summary
Modifier and Type Method Description ByteArrayread(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(ByteArray obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Constructor Detail
-
ByteArrayAdapter
ByteArrayAdapter(ScaleCodecAdapterProvider adapterResolver)
-
-
Method Detail
-
read
ByteArray read(ByteArrayReader reader, KType type, List<Annotation> annotations)
Reads (decodes) data to specified type
- Parameters:
reader- a ByteArray reader thattype- expected typeannotations- a list of annotations.
-
-
-
-