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 StringgetFilename()Retrieves the filename.StringgetId()Retrieves the upload id.InputStreamgetInputStream()Retrieves the input stream.longgetLength()Retrieves the data length.StringgetMimeType()Retrieves the mime type.ZonedDateTimegetUploadedDate()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.
-
-