Class JodaDateTimeSerializer
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<org.joda.time.DateTime>
com.xebialabs.xlrelease.actors.kryoserializers.javakaffee.jodatime.JodaDateTimeSerializer
public class JodaDateTimeSerializer
extends com.esotericsoftware.kryo.kryo5.Serializer<org.joda.time.DateTime>
A format for joda
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTimeread(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends org.joda.time.DateTime> type) voidwrite(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, org.joda.time.DateTime obj) Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
JodaDateTimeSerializer
public JodaDateTimeSerializer()
-
-
Method Details
-
read
public org.joda.time.DateTime read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends org.joda.time.DateTime> type) - Specified by:
readin classcom.esotericsoftware.kryo.kryo5.Serializer<org.joda.time.DateTime>
-
write
public void write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, org.joda.time.DateTime obj) - Specified by:
writein classcom.esotericsoftware.kryo.kryo5.Serializer<org.joda.time.DateTime>
-