Package com.c8db.internal.util
Class C8SerializerImpl
- java.lang.Object
-
- com.c8db.internal.util.C8SerializerImpl
-
- All Implemented Interfaces:
C8Serializer
public class C8SerializerImpl extends Object implements C8Serializer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.c8db.util.C8Serializer
C8Serializer.Options
-
-
Constructor Summary
Constructors Constructor Description C8SerializerImpl(com.arangodb.velocypack.VPack vpacker, com.arangodb.velocypack.VPack vpackerNull, com.arangodb.velocypack.VPackParser vpackParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.arangodb.velocypack.VPackSliceserialize(Object entity)Serialize a given Object to VelocyPackcom.arangodb.velocypack.VPackSliceserialize(Object entity, C8Serializer.Options options)Serialize a given Object to VelocyPack
-
-
-
Method Detail
-
serialize
public com.arangodb.velocypack.VPackSlice serialize(Object entity) throws C8DBException
Description copied from interface:C8SerializerSerialize a given Object to VelocyPack- Specified by:
serializein interfaceC8Serializer- Parameters:
entity- The Object to serialize. If it is from type String, it will be handled as a JSON.- Returns:
- The serialized VelocyPack
- Throws:
C8DBException
-
serialize
public com.arangodb.velocypack.VPackSlice serialize(Object entity, C8Serializer.Options options) throws C8DBException
Description copied from interface:C8SerializerSerialize a given Object to VelocyPack- Specified by:
serializein interfaceC8Serializer- Parameters:
entity- The Object to serialize. If it is from type String, it will be handled as a JSON.options- Additional options- Returns:
- the serialized VelocyPack
- Throws:
C8DBException
-
-