public interface FedoraBinary extends NonRdfSource
Modifier and Type | Method and Description |
---|---|
javax.jcr.Binary |
getBinaryContent() |
InputStream |
getContent() |
URI |
getContentDigest()
Get the pre-calculated content digest for the binary payload
|
long |
getContentSize() |
String |
getFilename()
Return the file name for the binary content
|
RdfStream |
getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator)
Get the fixity of this datastream compared to metadata stored in the repository
|
RdfStream |
getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
URI contentDigest,
long size)
Get the fixity of this datastream in a given repository's binary store.
|
String |
getMimeType() |
void |
setContent(InputStream content,
String contentType,
URI checksum,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Sets the content of this Datastream.
|
getDescription
delete, disableVersioning, enableVersioning, getBaseVersion, getChild, getChildren, getContainer, getCreatedDate, getEtagValue, getLastModifiedDate, getNode, getNodeVersion, getPath, getProperty, getTriples, getTriples, getUnfrozenResource, getVersionedAncestor, getVersionHistory, hasProperty, hasType, isFrozenResource, isNew, isVersioned, replaceProperties, updateProperties
InputStream getContent()
javax.jcr.Binary getBinaryContent()
void setContent(InputStream content, String contentType, URI checksum, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws InvalidChecksumException
content
- InputStream of binary content to be storedcontentType
- MIME type of content (optional)checksum
- Checksum URI of the content (optional)originalFileName
- Original file name of the content (optional)storagePolicyDecisionPoint
- Policy decision point for storing the content (optional)InvalidChecksumException
long getContentSize()
URI getContentDigest()
String getMimeType()
String getFilename()
RdfStream getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator)
idTranslator
- RdfStream getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, URI contentDigest, long size)
idTranslator
- contentDigest
- the checksum to compare againstsize
- the expected size of the binaryCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.