Package com.fauna.codec.codecs
Class QueryArrCodec
- java.lang.Object
-
- com.fauna.codec.codecs.BaseCodec<QueryArr>
-
- com.fauna.codec.codecs.QueryArrCodec
-
-
Constructor Summary
Constructors Constructor Description QueryArrCodec(CodecProvider provider)Creates a new instance of theQueryArrCodec.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryArrdecode(UTF8FaunaParser parser)Decodes an object from the providedUTF8FaunaParser.voidencode(UTF8FaunaGenerator gen, QueryArr obj)Encodes the specified object using the providedUTF8FaunaGenerator.java.lang.Class<QueryArr>getCodecClass()Gets the class associated with this codec.FaunaType[]getSupportedTypes()Gets the set of supported Fauna data types for this codec.-
Methods inherited from class com.fauna.codec.codecs.BaseCodec
unexpectedTokenExceptionMessage, unexpectedTypeWhileDecoding, unsupportedTypeDecodingMessage, unsupportedTypeMessage
-
-
-
-
Constructor Detail
-
QueryArrCodec
public QueryArrCodec(CodecProvider provider)
Creates a new instance of theQueryArrCodec.- Parameters:
provider- The codec provider used to retrieve codecs for object types.
-
-
Method Detail
-
decode
public QueryArr decode(UTF8FaunaParser parser) throws CodecException
Description copied from interface:CodecDecodes an object from the providedUTF8FaunaParser.- Parameters:
parser- The parser to use for reading and decoding the data.- Returns:
- The decoded object of type
T. - Throws:
CodecException- If an error occurs during decoding.
-
encode
public void encode(UTF8FaunaGenerator gen, QueryArr obj) throws CodecException
Description copied from interface:CodecEncodes the specified object using the providedUTF8FaunaGenerator.- Parameters:
gen- The generator to use for writing and encoding the data.obj- The object of typeTto encode.- Throws:
CodecException- If an error occurs during encoding.
-
getCodecClass
public java.lang.Class<QueryArr> getCodecClass()
Description copied from interface:CodecGets the class associated with this codec.- Returns:
- The
Classtype that this codec handles.
-
-