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
  • Field Summary

    Fields inherited from class org.apache.commons.fileupload.disk.DiskFileItem

    DEFAULT_CHARSET
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProgressMonitorFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository, ProgressMonitorStatus status)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • setObserver

      public void setObserver(ProgressObserver observer)
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface org.apache.commons.fileupload.FileItem
      Overrides:
      getOutputStream in class org.apache.commons.fileupload.disk.DiskFileItem
      Throws:
      IOException