public interface Datastream 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 |
getDsId() |
String |
getFilename()
Return the file name for the binary content
|
String |
getMimeType() |
FedoraObject |
getObject() |
Long |
getSize()
Return the calculated size of the DS node
|
void |
setContent(InputStream content)
Set the content of this datastream
|
void |
setContent(InputStream content,
String contentType,
URI checksum,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Sets the content of this Datastream.
|
addVersionLabel, getBaseVersion, getCreatedDate, getEtagValue, getHierarchyTriples, getLastModifiedDate, getModels, getNode, getPath, getPropertiesDataset, getPropertiesDataset, getTriples, getVersionHistory, getVersionTriples, hasContent, isNew, replaceProperties, updatePropertiesDatasetInputStream getContent() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionvoid setContent(InputStream content, String contentType, URI checksum, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws javax.jcr.RepositoryException, 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)javax.jcr.RepositoryExceptionInvalidChecksumExceptionvoid setContent(InputStream content) throws InvalidChecksumException, javax.jcr.RepositoryException
content - Binary content to be storedInvalidChecksumExceptionjavax.jcr.RepositoryExceptionlong getContentSize()
URI getContentDigest() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionString getDsId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionFedoraObject getObject() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionString getMimeType() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionLong getSize() throws javax.jcr.RepositoryException
getSize in interface FedoraResourcejavax.jcr.RepositoryExceptionString getFilename() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.