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