Class SerializedWrapperSerializer
- All Implemented Interfaces:
Externalizable, Serializable
Asymmetric serializer that writes a preserialized object as byte[],
but reads an original object
-
Field Summary
Fields inherited from class Serializer
cls, descriptor, origin, uid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcSize(Object obj, CalcSizeStream css) fromJson(JsonReader in) private static byte[]getSerialized(Object obj) read(DataStream in) voidskip(DataStream in) voidtoJson(Object obj, StringBuilder builder) voidwrite(Object obj, DataStream out) Methods inherited from class Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, readExternal, serialize, sizeOf, skipExternal, toJson, toString, uid, uniqueName, writeExternal
-
Constructor Details
-
SerializedWrapperSerializer
SerializedWrapperSerializer()
-
-
Method Details
-
calcSize
- Specified by:
calcSizein classSerializer<Object>- Throws:
IOException
-
write
- Specified by:
writein classSerializer<Object>- Throws:
IOException
-
read
- Specified by:
readin classSerializer<Object>- Throws:
IOExceptionClassNotFoundException
-
skip
- Specified by:
skipin classSerializer<Object>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Specified by:
toJsonin classSerializer<Object>- Throws:
IOException
-
fromJson
- Specified by:
fromJsonin classSerializer<Object>- Throws:
IOExceptionClassNotFoundException
-
getSerialized
-