@HandleClassMetadata @HandleBeanView public static class DefaultConverters.TimestampConverter extends Object implements Converter<Timestamp>
Modifier and Type | Field and Description |
---|---|
static DefaultConverters.TimestampConverter |
instance |
Modifier and Type | Method and Description |
---|---|
Timestamp |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(Timestamp object,
ObjectWriter writer,
Context ctx) |
public static final DefaultConverters.TimestampConverter instance
public Timestamp deserialize(ObjectReader reader, Context ctx)
deserialize
in interface Converter<Timestamp>
deserialize
in interface Deserializer<Timestamp>
reader
- used to read data from.ctx
- the current context.public void serialize(Timestamp object, ObjectWriter writer, Context ctx)
serialize
in interface Converter<Timestamp>
serialize
in interface Serializer<Timestamp>
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.Copyright © 2019. All rights reserved.