Interface Resource
-
- All Known Subinterfaces:
BinaryMetadata,ModifiableBinaryMetadata,ModifiableResource,ModifiableRichText,RichText
- All Known Implementing Classes:
JCRBinaryMetadata,JCRResource,JCRRichText
@Deprecated public interface Resource
Deprecated.Use org.ametys.cms.data.Resource insteadInterface representing a binary resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetEncoding()Deprecated.Returns the encoding if the data stream, if it is a character stream.InputStreamgetInputStream()Deprecated.Returns the data stream.DategetLastModified()Deprecated.Returns the last modification date.longgetLength()Deprecated.Returns the length of the data stream.StringgetMimeType()Deprecated.Returns the data mime-type.
-
-
-
Method Detail
-
getMimeType
String getMimeType() throws AmetysRepositoryException
Deprecated.Returns the data mime-type.- Returns:
- the data mime-type.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getInputStream
InputStream getInputStream() throws AmetysRepositoryException
Deprecated.Returns the data stream.- Returns:
- the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLength
long getLength() throws AmetysRepositoryException
Deprecated.Returns the length of the data stream.- Returns:
- the length of the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getEncoding
String getEncoding() throws AmetysRepositoryException
Deprecated.Returns the encoding if the data stream, if it is a character stream.- Returns:
- the encoding if the data stream or
nullif not available. - Throws:
AmetysRepositoryException- if an error occurs.
-
getLastModified
Date getLastModified() throws AmetysRepositoryException
Deprecated.Returns the last modification date.- Returns:
- the last modification date.
- Throws:
AmetysRepositoryException- if an error occurs.
-
-