Package com.usatiuk.objects
Class JDataVersionedWrapperSerializer
java.lang.Object
com.usatiuk.objects.JDataVersionedWrapperSerializer
Serializer for JDataVersionedWrapper objects.
The objects are stored in a simple format: first is 8-byte long, then the serialized object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(ByteBuffer data) Deserializes a JDataVersionedWrapper object from a ByteBuffer.com.google.protobuf.ByteString
Serializes a JDataVersionedWrapper object to a ByteString.
-
Constructor Details
-
JDataVersionedWrapperSerializer
public JDataVersionedWrapperSerializer()
-
-
Method Details
-
serialize
Serializes a JDataVersionedWrapper object to a ByteString.- Parameters:
obj
- the object to serialize- Returns:
- the serialized object as a ByteString
-
deserialize
Deserializes a JDataVersionedWrapper object from a ByteBuffer. Returns a lazy wrapper (JDataVersionedWrapperLazy).- Parameters:
data
- the ByteBuffer containing the serialized object- Returns:
- the deserialized object
-