Package org.ametys.cms.data
Interface File
- All Known Implementing Classes:
Binary
,ExplorerFile
public interface File
Class representing a file
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data stream.Returns the last modification date.long
Returns the length of the data stream.Returns the data mime-type.getName()
Retrieves the file's namevoid
setLastModificationDate
(ZonedDateTime lastModificationDate) Sets the last modification date of the file's datavoid
setMimeType
(String mimeType) Sets the mime type of the file's data
-
Method Details
-
getInputStream
Returns the data stream.- Returns:
- the data stream.
-
getLastModificationDate
Returns the last modification date.- Returns:
- the last modification date.
-
setLastModificationDate
Sets the last modification date of the file's data- Parameters:
lastModificationDate
- the last modification date to set
-
getLength
long getLength()Returns the length of the data stream.- Returns:
- the length of the data stream.
-
getMimeType
Returns the data mime-type.- Returns:
- the data mime-type.
-
setMimeType
Sets the mime type of the file's data- Parameters:
mimeType
- the mime type to set
-
getName
Retrieves the file's name- Returns:
- the file's name
-