Package com.fauna.codec.codecs
Class ByteArrayCodec
- java.lang.Object
-
- com.fauna.codec.codecs.BaseCodec<byte[]>
-
- com.fauna.codec.codecs.ByteArrayCodec
-
-
Field Summary
Fields Modifier and Type Field Description static ByteArrayCodec
singleton
-
Constructor Summary
Constructors Constructor Description ByteArrayCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(UTF8FaunaParser parser)
void
encode(UTF8FaunaGenerator gen, byte[] obj)
java.lang.Class<?>
getCodecClass()
FaunaType[]
getSupportedTypes()
-
Methods inherited from class com.fauna.codec.codecs.BaseCodec
unexpectedTokenExceptionMessage, unexpectedTypeWhileDecoding, unsupportedTypeDecodingMessage, unsupportedTypeMessage
-
-
-
-
Field Detail
-
singleton
public static final ByteArrayCodec singleton
-
-
Method Detail
-
decode
public byte[] decode(UTF8FaunaParser parser) throws CodecException
- Throws:
CodecException
-
encode
public void encode(UTF8FaunaGenerator gen, byte[] obj) throws CodecException
- Throws:
CodecException
-
getCodecClass
public java.lang.Class<?> getCodecClass()
-
getSupportedTypes
public FaunaType[] getSupportedTypes()
-
-