@HandleClassMetadata @HandleBeanView public class PeriodConverter extends Object implements Converter<org.joda.time.Period>
| Constructor and Description |
|---|
PeriodConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.Period |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(org.joda.time.Period object,
ObjectWriter writer,
Context ctx) |
public void serialize(org.joda.time.Period object,
ObjectWriter writer,
Context ctx)
throws Exception
serialize in interface Converter<org.joda.time.Period>serialize in interface Serializer<org.joda.time.Period>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.JsonBindingExceptionJsonStreamExceptionExceptionpublic org.joda.time.Period deserialize(ObjectReader reader, Context ctx) throws Exception
deserialize in interface Converter<org.joda.time.Period>deserialize in interface Deserializer<org.joda.time.Period>reader - used to read data from.ctx - the current context.JsonBindingExceptionJsonStreamExceptionExceptionCopyright © 2019. All rights reserved.