Package org.faceless.publisher.type
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 TypeMethodDescriptiondefault 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.
-
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
-