Package one.nio.serial
Class JavaTimeSerializer
java.lang.Object
one.nio.serial.Serializer
one.nio.serial.JavaTimeSerializer
- All Implemented Interfaces:
Externalizable,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcSize(Object obj, CalcSizeStream css) fromJson(JsonReader in) private voidread(DataStream in) voidvoidskip(DataStream in) voidtoJson(Object obj, StringBuilder builder) voidwrite(Object obj, DataStream out) Methods inherited from class one.nio.serial.Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, serialize, sizeOf, skipExternal, toJson, toString, uid, uniqueName, writeExternal
-
Field Details
-
writeExternal
-
readExternal
-
-
Constructor Details
-
JavaTimeSerializer
JavaTimeSerializer(Class cls)
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSerializer- Throws:
IOExceptionClassNotFoundException
-
initMethodHandles
private void initMethodHandles() -
calcSize
- Specified by:
calcSizein classSerializer- Throws:
IOException
-
write
- Specified by:
writein classSerializer- Throws:
IOException
-
read
- Specified by:
readin classSerializer- Throws:
IOExceptionClassNotFoundException
-
skip
- Specified by:
skipin classSerializer- Throws:
IOExceptionClassNotFoundException
-
toJson
- Specified by:
toJsonin classSerializer- Throws:
NotSerializableException
-
fromJson
- Specified by:
fromJsonin classSerializer- Throws:
NotSerializableException
-