Interface OSerializableStream

All Superinterfaces:
Serializable
All Known Subinterfaces:
OBlob, OEdge, OElement, ORecord, ORID, OVertex
All Known Implementing Classes:
OContextualRecordId, ODocument, ODocumentEmbedded, OEdgeDelegate, OEdgeDocument, OImmutableRecordId, OPhysicalPosition, ORecordAbstract, ORecordBytes, ORecordId, OSerializableWrapper, OStorageConfigurationImpl, OStorageConfigurationSegment, OStorageMemoryConfiguration, OVertexDelegate, OVertexDocument, OViewDocument

@Deprecated(forRemoval=true) public interface OSerializableStream extends Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Base interface of serialization.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    fromStream(byte[] iStream)
    Deprecated, for removal: This API element is subject to removal in a future version.
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • toStream

      @Deprecated(forRemoval=true) byte[] toStream() throws OSerializationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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(forRemoval=true) OSerializableStream fromStream(byte[] iStream) throws OSerializationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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