public class JodaDateTimeSerializer
extends com.esotericsoftware.kryo.Serializer<org.joda.time.DateTime>
DateTime, that stores the millis, chronology and
time zone as separate attributes. If the chronology is ISOChronology,
the attribute is omitted, thus ISOChronology is seen as default. If
the time zone is the default time zone (DateTimeZone.getDefault()),
the time zone attribute is omitted. This requires different machines to
have the same time zone settings.
The following chronologies are supported:
ISOChronologyCopticChronologyEthiopicChronologyGregorianChronologyJulianChronologyIslamicChronologyBuddhistChronologyGJChronology| Constructor and Description |
|---|
JodaDateTimeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<org.joda.time.DateTime> type) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
org.joda.time.DateTime obj) |
public org.joda.time.DateTime read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<org.joda.time.DateTime> type)
read in class com.esotericsoftware.kryo.Serializer<org.joda.time.DateTime>public void write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
org.joda.time.DateTime obj)
write in class com.esotericsoftware.kryo.Serializer<org.joda.time.DateTime>Copyright © 2010–2015. All rights reserved.