com.jalios.jcms.upload
Class ProgressMonitorFileItem

java.lang.Object
  extended by org.apache.commons.fileupload.disk.DiskFileItem
      extended by com.jalios.jcms.upload.ProgressMonitorFileItem
All Implemented Interfaces:
Serializable, 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
Version:
$Revision: 36667 $
Author:
Jean-Philippe Encausse
See Also:
Serialized Form

Field Summary
static String REVISION
           
 
Fields inherited from class org.apache.commons.fileupload.disk.DiskFileItem
DEFAULT_CHARSET
 
Constructor Summary
ProgressMonitorFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository, ProgressMonitorStatus status)
           
 
Method Summary
 OutputStream getOutputStream()
           
 void setObserver(ProgressObserver observer)
           
 
Methods inherited from class org.apache.commons.fileupload.disk.DiskFileItem
delete, finalize, get, getCharSet, getContentType, getFieldName, getHeaders, getInputStream, getName, getSize, getStoreLocation, getString, getString, getTempFile, isFormField, isInMemory, setFieldName, setFormField, setHeaders, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

ProgressMonitorFileItem

public ProgressMonitorFileItem(String fieldName,
                               String contentType,
                               boolean isFormField,
                               String fileName,
                               int sizeThreshold,
                               File repository,
                               ProgressMonitorStatus status)
Method Detail

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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.