@Deprecated public class JCRBinaryMetadata extends JCRResource implements ModifiableBinaryMetadata
BinaryMetadata
based on the ametys:binaryMetadata nodetypeModifier 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, setMimeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rename, setEncoding, setLastModified, setMimeType
getEncoding, getInputStream, getLastModified, getLength, getMimeType
public JCRBinaryMetadata(Node node)
node
- the support Nodepublic String getFilename()
BinaryMetadata
getFilename
in interface BinaryMetadata
public void setFilename(String filename)
ModifiableBinaryMetadata
setFilename
in interface ModifiableBinaryMetadata
filename
- the initial filename, or nullpublic String getHash()
BinaryMetadata
getHash
in interface BinaryMetadata
public void setInputStream(InputStream stream) throws AmetysRepositoryException
ModifiableResource
setInputStream
in interface ModifiableResource
setInputStream
in class JCRResource
stream
- the data stream.AmetysRepositoryException
- if an error occurs.public OutputStream getOutputStream() throws AmetysRepositoryException
ModifiableResource
getOutputStream
in interface ModifiableResource
getOutputStream
in class JCRResource
AmetysRepositoryException
- if an error occurs.