public class LocalFileBinary extends UrlBinary
FedoraResourceImpl.RdfGenerator
org.modeshape.jcr.api.JcrTools.BasicOperation, org.modeshape.jcr.api.JcrTools.BrowseContent, org.modeshape.jcr.api.JcrTools.CountNodes, org.modeshape.jcr.api.JcrTools.NodeOperation, org.modeshape.jcr.api.JcrTools.Operation, org.modeshape.jcr.api.JcrTools.PrintNodes, org.modeshape.jcr.api.JcrTools.Variable
DEFAULT_MIME_TYPE
CONTAINER_WEBAC_ACL, contextMap, node
CONTENT_DIGEST, CONTENT_SIZE, DEFAULT_DIGEST_ALGORITHM, FCR_ACL, FCR_FIXITY, FCR_METADATA, FCR_VERSIONS, FEDORA_BINARY, FEDORA_CONTAINER, FEDORA_CREATED, FEDORA_CREATEDBY, FEDORA_LASTMODIFIED, FEDORA_LASTMODIFIEDBY, FEDORA_NON_RDF_SOURCE_DESCRIPTION, FEDORA_PAIRTREE, FEDORA_REPOSITORY_ROOT, FEDORA_RESOURCE, FEDORA_SKOLEM, FEDORA_TIME_MAP, FEDORA_TOMBSTONE, FEDORA_WEBAC_ACL, FILENAME, HAS_MIME_TYPE, LDP_BASIC_CONTAINER, LDP_CONTAINER, LDP_DIRECT_CONTAINER, LDP_HAS_MEMBER_RELATION, LDP_INDIRECT_CONTAINER, LDP_INSERTED_CONTENT_RELATION, LDP_IS_MEMBER_OF_RELATION, LDP_MEMBER_RESOURCE, LDP_NON_RDF_SOURCE, LDP_RDF_SOURCE, MEMENTO, MEMENTO_DATETIME, MEMENTO_ORIGINAL, PROXY_FOR, REDIRECTS_TO
Constructor and Description |
---|
LocalFileBinary(javax.jcr.Node node)
Constructs a LocalFileBinaryImpl
|
Modifier and Type | Method and Description |
---|---|
long |
getContentSize() |
String |
getMimeType()
Returns the specified mimetype in place of the original external-body if provided
|
protected long |
getRemoteContentSize() |
void |
setContent(InputStream content,
String contentType,
Collection<URI> checksums,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Sets the content of this Datastream.
|
void |
setExternalContent(String contentType,
Collection<URI> checksums,
String originalFileName,
String externalHandling,
String externalUrl)
Sets the external content reference for this datastream
|
checkFixity, getContent, getFixity, getFixity, getResourceUri
delete, getContentDigest, getDescription, getDescriptionNode, getDescriptionNodeOrNull, getFilename, getMimeTypeValue, getProxyURL, getRedirectURL, hasDescriptionProperty, isProxy, isRedirect, setContentSize, setProxyURL, setRedirectURL
addType, convertMementoReferences, equals, findMementoByDatetime, findOrCreateAcl, fixDatesIfNecessary, getAcl, getChild, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getNode, getOriginalResource, getPath, getProperty, getSession, getTimeMap, getTriples, getTriples, getTypes, hashCode, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, removeReferences, replaceProperties, toString, touch, updateProperties
findOrCreateChild, findOrCreateChild, findOrCreateNode, findOrCreateNode, findOrCreateNode, findOrCreateNode, getNode, getReadable, getStringValue, importContent, importContent, importContent, importContent, importContent, importContent, importContent, isDebug, onEachNode, onEachNodeBelow, print, printNode, printQuery, printQuery, printQuery, printQuery, printSubgraph, printSubgraph, printSubgraph, registerNodeTypes, removeAllChildren, removeAllChildren, repeatedlyWithSession, resourceUrl, setDebug, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSession
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getRedirectURI
addType, findMementoByDatetime, findOrCreateAcl, getAcl, getChild, getChildren, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getOriginalResource, getPath, getTimeMap, getTriples, getTriples, getTypes, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, replaceProperties, updateProperties
public LocalFileBinary(javax.jcr.Node node)
node
- nodepublic void setContent(InputStream content, String contentType, Collection<URI> checksums, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws UnsupportedOperationException
FedoraBinary
setContent
in interface FedoraBinary
setContent
in class UrlBinary
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)UnsupportedOperationException
public void setExternalContent(String contentType, Collection<URI> checksums, String originalFileName, String externalHandling, String externalUrl) throws InvalidChecksumException
FedoraBinary
setExternalContent
in interface FedoraBinary
setExternalContent
in class UrlBinary
contentType
- MIME type of content (optional)checksums
- Collection of checksum URIs of the content (optional)originalFileName
- Original file name of the content (optional)externalHandling
- What type of handling the external resource needs (proxy or redirect)externalUrl
- Url for the external resourcejInvalidChecksumException
- if invalid checksum exception occurredpublic String getMimeType()
UrlBinary
getMimeType
in interface FedoraBinary
getMimeType
in class UrlBinary
public long getContentSize()
getContentSize
in interface FedoraBinary
getContentSize
in class AbstractFedoraBinary
protected long getRemoteContentSize()
getRemoteContentSize
in class UrlBinary
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.