Class DefaultConverters.WrappedRootValueConverter<T>
- java.lang.Object
-
- com.oracle.coherence.io.json.genson.convert.DefaultConverters.WrappedRootValueConverter<T>
-
- All Implemented Interfaces:
Converter<T>,Deserializer<T>,Serializer<T>
- Enclosing class:
- DefaultConverters
public static class DefaultConverters.WrappedRootValueConverter<T> extends Object implements Converter<T>
-
-
Constructor Summary
Constructors Constructor Description WrappedRootValueConverter(String inputName, String outputName, Converter<T> delegateConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(ObjectReader reader, Context ctx)voidserialize(T object, ObjectWriter writer, Context ctx)
-
-
-
Method Detail
-
serialize
public void serialize(T object, ObjectWriter writer, Context ctx) throws Exception
- Specified by:
serializein interfaceConverter<T>- Specified by:
serializein interfaceSerializer<T>- Parameters:
object- we want to serialize. The object is of type T or a subclass (if this serializer has been registered for subclasses).writer- to use to write data to the output stream.ctx- the current context.- Throws:
JsonBindingExceptionJsonStreamExceptionException
-
deserialize
public T deserialize(ObjectReader reader, Context ctx) throws Exception
- Specified by:
deserializein interfaceConverter<T>- Specified by:
deserializein interfaceDeserializer<T>- Parameters:
reader- used to read data from.ctx- the current context.- Returns:
- an instance of T or a subclass of T.
- Throws:
JsonBindingExceptionJsonStreamExceptionException
-
-