@Deprecated public interface ModifiableResource extends Resource
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream()
Deprecated.
Returns an OuputStream to write the data stream.
|
void |
rename(String newName)
Deprecated.
Rename the current metadata
|
void |
setEncoding(String encoding)
Deprecated.
Set the encoding if the data stream, if it is a character stream.
|
void |
setInputStream(InputStream stream)
Deprecated.
Set the data stream.
|
void |
setLastModified(Date lastModifiedDate)
Deprecated.
Set the last modification date.
|
void |
setMimeType(String mimeType)
Deprecated.
Set the mime type.
|
getEncoding, getInputStream, getLastModified, getLength, getMimeType
void rename(String newName) throws AmetysRepositoryException
newName
- the new nameAmetysRepositoryException
- if an error occurs.void setMimeType(String mimeType) throws AmetysRepositoryException
mimeType
- the mime type of the data.AmetysRepositoryException
- if an error occurs.OutputStream getOutputStream() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.void setInputStream(InputStream stream) throws AmetysRepositoryException
stream
- the data stream.AmetysRepositoryException
- if an error occurs.void setEncoding(String encoding) throws AmetysRepositoryException
encoding
- the encoding of the data stream.AmetysRepositoryException
- if an error occurs.void setLastModified(Date lastModifiedDate) throws AmetysRepositoryException
lastModifiedDate
- the last modification date.AmetysRepositoryException
- if an error occurs.