public interface ModifiableResource extends Resource
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Returns an OuputStream to write the data stream.
|
void |
rename(String newName)
Rename the current metadata
|
void |
setEncoding(String encoding)
Set the encoding if the data stream, if it is a character stream.
|
void |
setInputStream(InputStream stream)
Set the data stream.
|
void |
setLastModified(Date lastModifiedDate)
Set the last modification date.
|
void |
setMimeType(String mimeType)
Set the mime type.
|
getEncoding, getInputStream, getLastModified, getLength, getMimeTypevoid 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.