public interface Resource
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Returns the encoding if the data stream, if it is a character stream.
|
InputStream |
getInputStream()
Returns the data stream.
|
Date |
getLastModified()
Returns the last modification date.
|
long |
getLength()
Returns the length of the data stream.
|
String |
getMimeType()
Returns the data mime-type.
|
String getMimeType() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.InputStream getInputStream() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.long getLength() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getEncoding() throws AmetysRepositoryException
null
if not available.AmetysRepositoryException
- if an error occurs.Date getLastModified() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.