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 String
getEncoding()
Deprecated.Returns the encoding if the data stream, if it is a character stream.InputStream
getInputStream()
Deprecated.Returns the data stream.Date
getLastModified()
Deprecated.Returns the last modification date.long
getLength()
Deprecated.Returns the length of the data stream.String
getMimeType()
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
null
if 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.
-
-