public interface Datastream extends FedoraResource
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Binary |
getBinaryContent() |
InputStream |
getContent() |
URI |
getContentDigest()
Get the pre-calculated content digest for the binary payload
|
javax.jcr.Node |
getContentNode() |
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
|
boolean |
hasContent()
Check if the datastream has a content 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, getReferencesTriples, getTriples, getVersionHistory, getVersionTriples, isNew, replaceProperties, updatePropertiesDatasetInputStream getContent() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Binary getBinaryContent()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Node getContentNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean hasContent()
throws javax.jcr.RepositoryException
hasContent in interface FedoraResourcejavax.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.