Package com.couchbase.client.java.codec
Class JsonValueSerializerWrapper
java.lang.Object
com.couchbase.client.java.codec.JsonValueSerializerWrapper
- All Implemented Interfaces:
JsonSerializer
Wraps another serializer, intercepting and handling requests to
[de]serialize JsonObject and JsonArray.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialize(TypeRef<T> target, byte[] input) Deserializes raw input into the target type.<T> Tdeserialize(Class<T> target, byte[] input) Deserializes raw input into the target class.byte[]Serializes the given input into its encoded byte array form.
-
Constructor Details
-
JsonValueSerializerWrapper
-
-
Method Details
-
serialize
Description copied from interface:JsonSerializerSerializes the given input into its encoded byte array form.- Specified by:
serializein interfaceJsonSerializer- Parameters:
input- the object as input.- Returns:
- the serialized output.
-
deserialize
Description copied from interface:JsonSerializerDeserializes raw input into the target class.- Specified by:
deserializein interfaceJsonSerializer- Type Parameters:
T- the generic type to deserialize into.- Parameters:
target- the target class.input- the raw input.- Returns:
- the deserialized output.
-
deserialize
Description copied from interface:JsonSerializerDeserializes raw input into the target type.- Specified by:
deserializein interfaceJsonSerializer- Type Parameters:
T- the type to deserialize into.- Parameters:
target- the target type.input- the raw input.- Returns:
- the deserialized output.
-