Interface AbstractBlob

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
    long
    Return the byte-length of this attachment, or -1 if can't be determined yet
    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.
    default boolean
    Return true if the data in this blobs should be considered trusted.
  • 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
    • isTrusted

      default boolean isTrusted()
      Return true if the data in this blobs should be considered trusted. The default implementation returns false
      Since:
      1.3
      See Also:
    • byteLength

      long byteLength()
      Return the byte-length of this attachment, or -1 if can't be determined yet