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