Package org.fcrepo.kernel.api.models
Interface Binary
-
- All Superinterfaces:
FedoraResource
public interface Binary extends FedoraResource
- Since:
- 9/19/14
- Author:
- cabeer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputStreamgetContent()Collection<URI>getContentDigests()Get the pre-calculated content digest for the binary payloadlonggetContentSize()default URIgetExternalURI()StringgetExternalURL()StringgetFilename()Return the file name for the binary contentStringgetMimeType()BooleanisProxy()BooleanisRedirect()-
Methods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getDescription, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getStateToken, getSystemTypes, getTimeMap, getTriples, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
-
-
-
Method Detail
-
getContent
InputStream getContent()
- Returns:
- The InputStream of content associated with this datastream.
-
getContentSize
long getContentSize()
- Returns:
- The size in bytes of content associated with this datastream.
-
getContentDigests
Collection<URI> getContentDigests()
Get the pre-calculated content digest for the binary payload- Returns:
- a URI with the format algorithm:value
-
isRedirect
Boolean isRedirect()
- Returns:
- Whether or not this binary is a redirect to another resource
-
getExternalURL
String getExternalURL()
- Returns:
- the external url for this binary if present, or null.
-
getExternalURI
default URI getExternalURI()
- Returns:
- Get the external uri for this binary if present, or null
-
getMimeType
String getMimeType()
- Returns:
- The MimeType of content associated with this datastream.
-
getFilename
String getFilename()
Return the file name for the binary content- Returns:
- original file name for the binary content, or the object's id.
-
-