Package com.jalios.jcms.upload
Class ProgressMonitorFileItem
- java.lang.Object
-
- org.apache.commons.fileupload.disk.DiskFileItem
-
- com.jalios.jcms.upload.ProgressMonitorFileItem
-
- All Implemented Interfaces:
org.apache.commons.fileupload.FileItem
,org.apache.commons.fileupload.FileItemHeadersSupport
public class ProgressMonitorFileItem extends org.apache.commons.fileupload.disk.DiskFileItem
This class extends DiskFileItem to notify ProgressObserver of download status.- Since:
- jcms-5.7.0
- Author:
- Jean-Philippe Encausse
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitorFileItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName, int sizeThreshold, java.io.File repository, ProgressMonitorStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
getOutputStream()
void
setObserver(ProgressObserver observer)
-
Methods inherited from class org.apache.commons.fileupload.disk.DiskFileItem
delete, finalize, get, getCharSet, getContentType, getDefaultCharset, getFieldName, getHeaders, getInputStream, getName, getSize, getStoreLocation, getString, getString, getTempFile, isFormField, isInMemory, setDefaultCharset, setFieldName, setFormField, setHeaders, toString, write
-
-
-
-
Constructor Detail
-
ProgressMonitorFileItem
public ProgressMonitorFileItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName, int sizeThreshold, java.io.File repository, ProgressMonitorStatus status)
-
-
Method Detail
-
setObserver
public void setObserver(ProgressObserver observer)
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getOutputStream
in classorg.apache.commons.fileupload.disk.DiskFileItem
- Throws:
java.io.IOException
-
-