@HandleClassMetadata public static class DefaultConverters.ArrayConverter<E> extends Object implements Converter<Object>
| Constructor and Description |
|---|
ArrayConverter(Class<E> eClass,
Converter<E> elementConverter) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(Object array,
ObjectWriter writer,
Context ctx) |
public void serialize(Object array, ObjectWriter writer, Context ctx) throws Exception
serialize in interface Converter<Object>serialize in interface Serializer<Object>array - 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.JsonBindingExceptionJsonStreamExceptionExceptionpublic Object deserialize(ObjectReader reader, Context ctx) throws Exception
deserialize in interface Converter<Object>deserialize in interface Deserializer<Object>reader - used to read data from.ctx - the current context.JsonBindingExceptionJsonStreamExceptionExceptionCopyright © 2019. All rights reserved.