public class GregorianCalendarSerializer extends com.esotericsoftware.kryo.Serializer<GregorianCalendar>
Serializer
for GregorianCalendar
instances (which
are created via Calendar.getInstance()
if the locale is not thai or japanese, so
JapaneseImperialCalendar and BuddhistCalendar are not supported by this serializer).
With the default reflection based serialization, a calendar instance
(created via Calendar.getInstance(Locale.ENGLISH)
)
would take 1323 byte, this one only takes 24 byte.
Constructor and Description |
---|
GregorianCalendarSerializer() |
Modifier and Type | Method and Description |
---|---|
GregorianCalendar |
copy(com.esotericsoftware.kryo.Kryo kryo,
GregorianCalendar original) |
GregorianCalendar |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<GregorianCalendar> type) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
GregorianCalendar calendar) |
public GregorianCalendar read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<GregorianCalendar> type)
read
in class com.esotericsoftware.kryo.Serializer<GregorianCalendar>
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, GregorianCalendar calendar)
write
in class com.esotericsoftware.kryo.Serializer<GregorianCalendar>
public GregorianCalendar copy(com.esotericsoftware.kryo.Kryo kryo, GregorianCalendar original)
copy
in class com.esotericsoftware.kryo.Serializer<GregorianCalendar>
Copyright © 2010–2018. All rights reserved.