Package org.ametys.core.upload
Interface Upload
-
- All Known Implementing Classes:
FSUploadManager.FSUpload
public interface Upload
Access to a file uploaded previously.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFilename()
Retrieves the filename.String
getId()
Retrieves the upload id.InputStream
getInputStream()
Retrieves the input stream.long
getLength()
Retrieves the data length.String
getMimeType()
Retrieves the mime type.ZonedDateTime
getUploadedDate()
Retrieves the uploaded date.
-
-
-
Method Detail
-
getUploadedDate
ZonedDateTime getUploadedDate()
Retrieves the uploaded date.- Returns:
- the uploaded date.
-
getFilename
String getFilename()
Retrieves the filename.- Returns:
- the filename.
-
getMimeType
String getMimeType()
Retrieves the mime type.- Returns:
- the mime type.
-
getLength
long getLength()
Retrieves the data length.- Returns:
- the data length in bytes.
-
getInputStream
InputStream getInputStream()
Retrieves the input stream.Each call will return a new
InputStream
.- Returns:
- the input stream of the data.
-
-