Class 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​(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
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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

      • getOutputStream

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