Class Binary

java.lang.Object
org.nuxeo.ecm.core.blob.binary.Binary
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GridFSBinaryManager.GridFSBinary, LazyBinary

@Deprecated(since="2023.9") public class Binary extends Object implements Serializable
Deprecated.
since 2023.9
A binary object that can be read, and has a length and a digest.
Author:
Florent Guillaume, Bogdan Stefanescu
See Also:
  • Field Details

    • digest

      protected final String digest
      Deprecated.
    • blobProviderId

      protected final String blobProviderId
      Deprecated.
    • file

      protected transient File file
      Deprecated.
  • Constructor Details

    • Binary

      protected Binary(String digest, String blobProviderId)
      Deprecated.
    • Binary

      public Binary(File file, String digest, String blobProviderId)
      Deprecated.
  • Method Details

    • getDigestAlgorithm

      public String getDigestAlgorithm()
      Deprecated.
      Gets the digest algorithm from the digest length.
      Since:
      7.4
    • getDigest

      public String getDigest()
      Deprecated.
      Gets a string representation of the hex digest of the binary.
      Returns:
      the digest, characters are in the range [0-9a-f]
    • getBlobProviderId

      public String getBlobProviderId()
      Deprecated.
      Gets the blob provider which created this blob.

      This is usually the repository name.

      Returns:
      the blob provider id
      Since:
      7.3
    • getStream

      public InputStream getStream() throws IOException
      Deprecated.
      Gets an input stream for the binary.
      Returns:
      the input stream
      Throws:
      IOException
    • toString

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

      public File getFile()
      Deprecated.
    • recomputeFile

      protected File recomputeFile()
      Deprecated.
      Recomputes the file attribute by getting it from a new Binary for the same digest.