Package com.couchbase.client.java.codec
Class JsonValueSerializerWrapper
java.lang.Object
com.couchbase.client.java.codec.JsonValueSerializerWrapper
- All Implemented Interfaces:
JsonSerializer
public class JsonValueSerializerWrapper extends Object implements JsonSerializer
Wraps another serializer, intercepting and handling requests to
[de]serialize JsonObject and JsonArray.
-
Constructor Summary
Constructors Constructor Description JsonValueSerializerWrapper(JsonSerializer wrapped)
-
Method Summary
Modifier and Type Method Description <T> T
deserialize(Class<T> target, byte[] input)
Deserializes raw input into the target class.byte[]
serialize(Object input)
Serializes the given input into its encoded byte array form.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.java.codec.JsonSerializer
deserialize
-
Constructor Details
-
JsonValueSerializerWrapper
-
-
Method Details
-
serialize
Description copied from interface:JsonSerializer
Serializes the given input into its encoded byte array form.- Specified by:
serialize
in interfaceJsonSerializer
- Parameters:
input
- the object as input.- Returns:
- the serialized output.
-
deserialize
Description copied from interface:JsonSerializer
Deserializes raw input into the target class.- Specified by:
deserialize
in interfaceJsonSerializer
- Type Parameters:
T
- the generic type to deserialize into.- Parameters:
target
- the target class.input
- the raw input.- Returns:
- the deserialized output.
-