Class TimeSerializers.ZoneOffsetSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<ZoneOffset>
com.esotericsoftware.kryo.serializers.TimeSerializers.ZoneOffsetSerializer
- Enclosing class:
TimeSerializers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ZoneOffsetread(Kryo kryo, Input in, Class<ZoneOffset> type) Reads bytes and returns a new object of the specified concrete type.(package private) static voidwrite(Output out, ZoneOffset obj) voidwrite(Kryo kryo, Output out, ZoneOffset obj) Writes the bytes for the object to the output.Methods inherited from class Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable
-
Constructor Details
-
ZoneOffsetSerializer
ZoneOffsetSerializer()
-
-
Method Details
-
write
Description copied from class:SerializerWrites the bytes for the object to the output.This method should not be called directly, instead this serializer can be passed to
Kryowrite methods that accept a serialier.- Specified by:
writein classSerializer<ZoneOffset>- Parameters:
obj- May be null ifSerializer.getAcceptsNull()is true.
-
write
-
read
Description copied from class:SerializerReads bytes and returns a new object of the specified concrete type.Before Kryo can be used to read child objects,
Kryo.reference(Object)must be called with the parent object to ensure it can be referenced by the child objects. Any serializer that usesKryoto read a child object may need to be reentrant.This method should not be called directly, instead this serializer can be passed to
Kryoread methods that accept a serialier.- Specified by:
readin classSerializer<ZoneOffset>- Returns:
- May be null if
Serializer.getAcceptsNull()is true.
-
read
-