Package org.faceless.publisher.type
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 TypeMethodDescriptionlong
Return the byte-length of this attachment, or -1 if can't be determined yetdefault 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, ornull
if not known.Retun a newInputStream
to read from this Blobdefault long
Return the modification date of this Blob in milliseconds since the epoch, or 0 if not known.Return theMediaType
of this Blob, or null if not knowndefault URL2
getURL()
Return the URL2 associated with this Blob, ornull
if unspecified.default boolean
Return true if the data in this blobs should be considered trusted.
-
Method Details
-
getMediaType
MediaType getMediaType()Return theMediaType
of this Blob, or null if not known -
getDigest
Return a digest value for this Blob, ornull
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 returnsnull
-
getInputStream
InputStream getInputStream()Retun a newInputStream
to read from this Blob -
getURL
Return the URL2 associated with this Blob, ornull
if unspecified. The default implementation on this interface returnsnull
-
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
-