Interface Resource
- All Known Subinterfaces:
BinaryMetadata
,ModifiableBinaryMetadata
,ModifiableResource
,ModifiableRichText
,RichText
- All Known Implementing Classes:
JCRBinaryMetadata
,JCRResource
,JCRRichText
Deprecated.
Use org.ametys.cms.data.Resource instead
Interface representing a binary resource.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the encoding if the data stream, if it is a character stream.Deprecated.Returns the data stream.Deprecated.Returns the last modification date.long
Deprecated.Returns the length of the data stream.Deprecated.Returns the data mime-type.
-
Method Details
-
getMimeType
Deprecated.Returns the data mime-type.- Returns:
- the data mime-type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getInputStream
Deprecated.Returns the data stream.- Returns:
- the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLength
Deprecated.Returns the length of the data stream.- Returns:
- the length of the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getEncoding
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
Deprecated.Returns the last modification date.- Returns:
- the last modification date.
- Throws:
AmetysRepositoryException
- if an error occurs.
-