Class PrefixedUtf8BinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<String>
io.datarouter.bytes.binarydto.fieldcodec.string.PrefixedUtf8BinaryDtoFieldCodec
public class PrefixedUtf8BinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<String>
-
Constructor Summary
Constructors Constructor Description PrefixedUtf8BinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description Stringdecode(byte[] bytes, int offset)LengthAndValue<String>decodeWithLength(byte[] bytes, int offset)byte[]encode(String value)Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
compareAsIfEncoded, decodeLength, fixedLength, isFixedLength
-
Constructor Details
-
PrefixedUtf8BinaryDtoFieldCodec
public PrefixedUtf8BinaryDtoFieldCodec()
-
-
Method Details
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<String>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<String>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<String>
-