Class InMemoryDataRecord

java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.InMemoryDataRecord
All Implemented Interfaces:
DataRecord

@Deprecated(since="2024-09-23") public class InMemoryDataRecord extends Object implements DataRecord
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Represents binary data which is backed by a byte[] (in memory).
  • Method Details

    • isInstance

      public static boolean isInstance(String id)
      Deprecated.
      Checks if String can be converted to an instance of this class.
      Parameters:
      id - DataRecord identifier
      Returns:
      true if it can be converted
    • getInstance

      public static InMemoryDataRecord getInstance(String id) throws IllegalArgumentException
      Deprecated.
      Convert a String to an instance of this class.
      Parameters:
      id - DataRecord identifier
      Returns:
      the instance
      Throws:
      IllegalArgumentException
    • getIdentifier

      public DataIdentifier getIdentifier()
      Deprecated.
      Description copied from interface: DataRecord
      Returns the identifier of this record.
      Specified by:
      getIdentifier in interface DataRecord
      Returns:
      data identifier
    • getReference

      public String getReference()
      Deprecated.
      Description copied from interface: DataRecord
      Returns a secure reference to this binary, or null if no such reference is available.
      Specified by:
      getReference in interface DataRecord
      Returns:
      binary reference, or null
    • getLength

      public long getLength() throws DataStoreException
      Deprecated.
      Description copied from interface: DataRecord
      Returns the length of the binary stream in this record.
      Specified by:
      getLength in interface DataRecord
      Returns:
      length of the binary stream
      Throws:
      DataStoreException - if the record could not be accessed
    • getStream

      public InputStream getStream()
      Deprecated.
      Description copied from interface: DataRecord
      Returns the the binary stream in this record.
      Specified by:
      getStream in interface DataRecord
      Returns:
      binary stream
    • getLastModified

      public long getLastModified()
      Deprecated.
      Description copied from interface: DataRecord
      Returns the last modified of the record.
      Specified by:
      getLastModified in interface DataRecord
      Returns:
      last modified time of the binary stream
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.
      Overrides:
      hashCode in class Object
      Returns:
      always zero
      See Also: