Class OSerializableWrapper
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.OSerializableWrapper
- All Implemented Interfaces:
OSerializableStream,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromStream(byte[] iStream) Unmarshalls the object.byte[]toStream()Marshalls the object.
-
Constructor Details
-
OSerializableWrapper
public OSerializableWrapper() -
OSerializableWrapper
-
-
Method Details
-
toStream
Description copied from interface:OSerializableStreamMarshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.- Specified by:
toStreamin interfaceOSerializableStream- Returns:
- The byte array representation of the object
- Throws:
OSerializationException- if the marshalling does not succeed- See Also:
-
fromStream
Description copied from interface:OSerializableStreamUnmarshalls the object. Fills the current object with the values contained in the byte array representation restoring a previous state. Usually byte[] comes from the storage or network.- Specified by:
fromStreamin interfaceOSerializableStream- Parameters:
iStream- byte array representation of the object- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
- Throws:
OSerializationException- if the unmarshalling does not succeed
-
getSerializable
-