public static class DefaultConverters.WrappedRootValueConverter<T> extends Object implements Converter<T>
Constructor and Description |
---|
WrappedRootValueConverter(String inputName,
String outputName,
Converter<T> delegateConverter) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(T object,
ObjectWriter writer,
Context ctx) |
public void serialize(T object, ObjectWriter writer, Context ctx) throws Exception
serialize
in interface Converter<T>
serialize
in interface Serializer<T>
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.JsonBindingException
JsonStreamException
Exception
public T deserialize(ObjectReader reader, Context ctx) throws Exception
deserialize
in interface Converter<T>
deserialize
in interface Deserializer<T>
reader
- used to read data from.ctx
- the current context.JsonBindingException
JsonStreamException
Exception
Copyright © 2019. All rights reserved.