Interface AbstractBlob

All Known Subinterfaces:
MailExtension.PartBlob
All Known Implementing Classes:
Blob

public interface AbstractBlob
An generic "Blob" interface, which represents a resource that may be used by BFO Publisher. In most cases the Blob instance of this interface should be used
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Return the creation date of this Blob in milliseconds since the epoch, or 0 if not known.
    default String
    Return a digest value for this Blob, or null if not known.
    Retun a new InputStream to read from this Blob
    default long
    Return the modification date of this Blob in milliseconds since the epoch, or 0 if not known.
    Return the MediaType of this Blob, or null if not known
    default URL2
    Return the URL2 associated with this Blob, or null if unspecified.
  • Method Details

    • getMediaType

      MediaType getMediaType()
      Return the MediaType of this Blob, or null if not known
    • getDigest

      default String getDigest()
      Return a digest value for this Blob, or null if not known. Digest strings can be in any algorithm, but should be self describing; Blobs with identical digests will be consolidated. The default implementation on this interface returns null
    • getInputStream

      InputStream getInputStream()
      Retun a new InputStream to read from this Blob
    • getURL

      default URL2 getURL()
      Return the URL2 associated with this Blob, or null if unspecified. The default implementation on this interface returns null
    • getCreationDate

      default long getCreationDate()
      Return the creation date of this Blob in milliseconds since the epoch, or 0 if not known. The default implementation on this interface returns 0
    • getLastModified

      default long getLastModified()
      Return the modification date of this Blob in milliseconds since the epoch, or 0 if not known. The default implementation on this interface returns 0