Class C8SerializerImpl

    • Constructor Detail

      • C8SerializerImpl

        public C8SerializerImpl​(com.arangodb.velocypack.VPack vpacker,
                                com.arangodb.velocypack.VPack vpackerNull,
                                com.arangodb.velocypack.VPackParser vpackParser)
    • Method Detail

      • serialize

        public com.arangodb.velocypack.VPackSlice serialize​(Object entity)
                                                     throws C8DBException
        Description copied from interface: C8Serializer
        Serialize a given Object to VelocyPack
        Specified by:
        serialize in interface C8Serializer
        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: C8Serializer
        Serialize a given Object to VelocyPack
        Specified by:
        serialize in interface C8Serializer
        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