@Deprecated public class JCRBinaryMetadata extends JCRResource implements ModifiableBinaryMetadata
BinaryMetadata based on the ametys:binaryMetadata nodetype| Modifier and Type | Field and Description |
|---|---|
private static Logger |
__logger
Deprecated.
|
| Constructor and Description |
|---|
JCRBinaryMetadata(Node node)
Deprecated.
Creates a Node-based binary metadata
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Deprecated.
Returns the initial filename of the data, if any
|
String |
getHash()
Deprecated.
Returns the hash of the data (SHA1 encoding)
|
OutputStream |
getOutputStream()
Deprecated.
Returns an OuputStream to write the data stream.
|
void |
setFilename(String filename)
Deprecated.
Set the initial filename of the data, if any
|
void |
setInputStream(InputStream stream)
Deprecated.
Set the data stream.
|
_checkLock, getEncoding, getInputStream, getLastModified, getLength, getMimeType, getNode, rename, setEncoding, setLastModified, setMimeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrename, setEncoding, setLastModified, setMimeTypegetEncoding, getInputStream, getLastModified, getLength, getMimeTypepublic JCRBinaryMetadata(Node node)
node - the support Nodepublic String getFilename()
BinaryMetadatagetFilename in interface BinaryMetadatapublic void setFilename(String filename)
ModifiableBinaryMetadatasetFilename in interface ModifiableBinaryMetadatafilename - the initial filename, or nullpublic String getHash()
BinaryMetadatagetHash in interface BinaryMetadatapublic void setInputStream(InputStream stream) throws AmetysRepositoryException
ModifiableResourcesetInputStream in interface ModifiableResourcesetInputStream in class JCRResourcestream - the data stream.AmetysRepositoryException - if an error occurs.public OutputStream getOutputStream() throws AmetysRepositoryException
ModifiableResourcegetOutputStream in interface ModifiableResourcegetOutputStream in class JCRResourceAmetysRepositoryException - if an error occurs.