Package com.c8db
Class VelocyJack
- java.lang.Object
-
- com.c8db.VelocyJack
-
- All Implemented Interfaces:
C8Deserializer,C8Serialization,C8Serializer
public class VelocyJack extends Object implements C8Serialization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVelocyJack.ConfigureFunction-
Nested classes/interfaces inherited from interface com.c8db.util.C8Serializer
C8Serializer.Options
-
-
Constructor Summary
Constructors Constructor Description VelocyJack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(VelocyJack.ConfigureFunction f)<T> Tdeserialize(com.arangodb.velocypack.VPackSlice vpack, Type type)Deserialize a given VelocyPack to an instance of a given typecom.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
-
configure
public void configure(VelocyJack.ConfigureFunction f)
-
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
-
deserialize
public <T> T deserialize(com.arangodb.velocypack.VPackSlice vpack, Type type) throws C8DBExceptionDescription copied from interface:C8DeserializerDeserialize a given VelocyPack to an instance of a given type- Specified by:
deserializein interfaceC8Deserializer- Parameters:
vpack- The VelocyPack to deserializetype- The target type to deserialize to. Use String for raw JSON.- Returns:
- The deserialized VelocyPack
- Throws:
C8DBException
-
-