-
- All Implemented Interfaces:
public final class Int16Adapter extends ScaleCodecAdapter<Short>
An adapter for Int16
-
-
Constructor Summary
Constructors Constructor Description Int16Adapter()
-
Method Summary
Modifier and Type Method Description Shortread(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(Short obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Method Detail
-
read
Short 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.
-
-
-
-