Package com.fauna.codec.codecs
Class QueryLiteralCodec
- java.lang.Object
- 
- com.fauna.codec.codecs.BaseCodec<QueryLiteral>
- 
- com.fauna.codec.codecs.QueryLiteralCodec
 
 
- 
- All Implemented Interfaces:
- Codec<QueryLiteral>
 
 public final class QueryLiteralCodec extends BaseCodec<QueryLiteral> Codec for encoding and decodingQueryLiteralobjects.
- 
- 
Constructor SummaryConstructors Constructor Description QueryLiteralCodec()Creates a new instance of theQueryLiteralCodec.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryLiteraldecode(UTF8FaunaParser parser)Decodes an object from the providedUTF8FaunaParser.voidencode(UTF8FaunaGenerator gen, QueryLiteral obj)Encodes the specified object using the providedUTF8FaunaGenerator.java.lang.Class<QueryLiteral>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.BaseCodecunexpectedTokenExceptionMessage, unexpectedTypeWhileDecoding, unsupportedTypeDecodingMessage, unsupportedTypeMessage
 
- 
 
- 
- 
- 
Constructor Detail- 
QueryLiteralCodecpublic QueryLiteralCodec() Creates a new instance of theQueryLiteralCodec.
 
- 
 - 
Method Detail- 
decodepublic QueryLiteral 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.
 
 - 
encodepublic void encode(UTF8FaunaGenerator gen, QueryLiteral 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 type- Tto encode.
- Throws:
- CodecException- If an error occurs during encoding.
 
 - 
getCodecClasspublic java.lang.Class<QueryLiteral> getCodecClass() Description copied from interface:CodecGets the class associated with this codec.- Returns:
- The Classtype that this codec handles.
 
 
- 
 
-