Class Binary

    • Field Detail

      • digest

        protected final String digest
      • blobProviderId

        protected final String blobProviderId
      • file

        protected transient File file
    • Constructor Detail

      • Binary

        protected Binary​(String digest,
                         String blobProviderId)
    • Method Detail

      • getDigestAlgorithm

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

        public String getDigest()
        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()
        Gets the blob provider which created this blob.

        This is usually the repository name.

        Returns:
        the blob provider id
        Since:
        7.3
      • getFile

        public File getFile()
      • recomputeFile

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