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