Interface OSerializableStream
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
OContextualRecordId,ODocument,ODocumentEmbedded,OEdgeDelegate,OEdgeDocument,OImmutableRecordId,OPhysicalPosition,ORecordAbstract,ORecordBytes,ORecordBytesLazy,ORecordFlat,ORecordId,OrientEdge,OrientElement,OrientVertex,OSerializableWrapper,OStorageConfigurationImpl,OStorageConfigurationSegment,OStorageMemoryConfiguration,OVertexDelegate,OVertexDocument,OViewDocument
Deprecated.
Base interface of serialization.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Method Summary
Modifier and TypeMethodDescriptionfromStream(byte[] iStream) Deprecated.byte[]toStream()Deprecated.
-
Method Details
-
toStream
Deprecated.Marshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.- Returns:
- The byte array representation of the object
- Throws:
OSerializationException- if the marshalling does not succeed- See Also:
-
fromStream
Deprecated.Unmarshalls 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.- 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
-