public interface FedoraBinary extends FedoraResource
Modifier and Type | Method and Description |
---|---|
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<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
Get the fixity of this datastream compared to metadata stored in the repository
|
RdfStream |
getFixity(IdentifierConverter<org.apache.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,
Collection<URI> checksums,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Sets the content of this Datastream.
|
delete, disableVersioning, enableVersioning, getBaseVersion, getChild, getChildren, getChildren, getContainer, getCreatedDate, getDescribedResource, getDescription, getEtagValue, getLastModifiedDate, getPath, getTriples, getTriples, getTypes, getUnfrozenResource, getVersion, getVersionedAncestor, getVersionLabelOfFrozenResource, getVersions, hasProperty, hasType, isFrozenResource, isNew, isVersioned, replaceProperties, updateProperties
InputStream getContent()
void setContent(InputStream content, String contentType, Collection<URI> checksums, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws InvalidChecksumException
content
- InputStream of binary content to be storedcontentType
- MIME type of content (optional)checksums
- Collection of checksum URIs of the content (optional)originalFileName
- Original file name of the content (optional)storagePolicyDecisionPoint
- Policy decision point for storing the content (optional)InvalidChecksumException
- if invalid checksum exception occurredlong getContentSize()
URI getContentDigest()
String getMimeType()
String getFilename()
RdfStream getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
idTranslator
- the id translatorRdfStream getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, URI contentDigest, long size)
idTranslator
- the id translatorcontentDigest
- the checksum to compare againstsize
- the expected size of the binaryCopyright © 2013–2018 DuraSpace, Inc.. All rights reserved.