Class FSUploadManager.FSUpload
java.lang.Object
org.ametys.plugins.core.impl.upload.FSUploadManager.FSUpload
- All Implemented Interfaces:
Upload
- Enclosing class:
- FSUploadManager
Upload
implementation on file system.-
Constructor Summary
-
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.
-
Constructor Details
-
FSUpload
Creates a FSUpload from a file.- Parameters:
context
- the context.file
- the file.
-
-
Method Details
-
getId
Description copied from interface:Upload
Retrieves the upload id. -
getUploadedDate
Description copied from interface:Upload
Retrieves the uploaded date.- Specified by:
getUploadedDate
in interfaceUpload
- Returns:
- the uploaded date.
-
getFilename
Description copied from interface:Upload
Retrieves the filename.- Specified by:
getFilename
in interfaceUpload
- Returns:
- the filename.
-
getMimeType
Description copied from interface:Upload
Retrieves the mime type.- Specified by:
getMimeType
in interfaceUpload
- Returns:
- the mime type.
-
getLength
Description copied from interface:Upload
Retrieves the data length. -
getInputStream
Description copied from interface:Upload
Retrieves the input stream.Each call will return a new
InputStream
.- Specified by:
getInputStream
in interfaceUpload
- Returns:
- the input stream of the data.
-