Home » commons-fileupload-1.2-src » org.apache.commons » fileupload » [javadoc | source]
org.apache.commons.fileupload
public class: DiskFileUpload [javadoc | source]
java.lang.Object
   org.apache.commons.fileupload.FileUploadBase
      org.apache.commons.fileupload.DiskFileUpload
Deprecated! Use - ServletFileUpload together with DiskFileItemFactory instead.

High level API for processing file uploads.

This class handles multiple files per single HTML widget, sent using multipart/mixed encoding type, as specified by RFC 1867. Use #parseRequest(HttpServletRequest) to acquire a list of org.apache.commons.fileupload.FileItem s associated with a given HTML widget.

Individual parts will be stored in temporary disk storage or in memory, depending on their size, and will be available as org.apache.commons.fileupload.FileItem s.

Fields inherited from org.apache.commons.fileupload.FileUploadBase:
CONTENT_TYPE,  CONTENT_DISPOSITION,  FORM_DATA,  ATTACHMENT,  MULTIPART,  MULTIPART_FORM_DATA,  MULTIPART_MIXED,  MAX_HEADER_SIZE
Constructor:
 public DiskFileUpload() 
 public DiskFileUpload(DefaultFileItemFactory fileItemFactory) 
    Constructs an instance of this class which uses the supplied factory to create FileItem instances.
    Parameters:
    fileItemFactory - The file item factory to use.
    Also see:
    DiskFileUpload()
Method from org.apache.commons.fileupload.DiskFileUpload Summary:
getFileItemFactory,   getRepositoryPath,   getSizeThreshold,   parseRequest,   setFileItemFactory,   setRepositoryPath,   setSizeThreshold
Methods from org.apache.commons.fileupload.FileUploadBase:
createItem,   getBoundary,   getFieldName,   getFileItemFactory,   getFileName,   getFileSizeMax,   getHeader,   getHeaderEncoding,   getItemIterator,   getProgressListener,   getSizeMax,   isMultipartContent,   isMultipartContent,   parseHeaders,   parseRequest,   parseRequest,   setFileItemFactory,   setFileSizeMax,   setHeaderEncoding,   setProgressListener,   setSizeMax
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.fileupload.DiskFileUpload Detail:
 public FileItemFactory getFileItemFactory() 
Deprecated! Use - FileUpload instead.

      Deprecated!
    Returns the factory class used when creating file items.
 public String getRepositoryPath() 
Deprecated! Use - DiskFileItemFactory instead.

      Deprecated!
    Returns the location used to temporarily store files that are larger than the configured size threshold.
 public int getSizeThreshold() 
Deprecated! Use - DiskFileItemFactory instead.

      Deprecated!
    Returns the size threshold beyond which files are written directly to disk.
 public List parseRequest(HttpServletRequest req,
    int sizeThreshold,
    long sizeMax,
    String path) throws FileUploadException 
Deprecated! Use - ServletFileUpload instead.

      Deprecated!
    Processes an RFC 1867 compliant multipart/form-data stream. If files are stored on disk, the path is given by getRepository().
 public  void setFileItemFactory(FileItemFactory factory) 
Deprecated! Use - FileUpload instead.

      Deprecated!
    Sets the factory class to use when creating file items. The factory must be an instance of DefaultFileItemFactory or a subclass thereof, or else a ClassCastException will be thrown.
 public  void setRepositoryPath(String repositoryPath) 
Deprecated! Use - DiskFileItemFactory instead.

      Deprecated!
    Sets the location used to temporarily store files that are larger than the configured size threshold.
 public  void setSizeThreshold(int sizeThreshold) 
Deprecated! Use - DiskFileItemFactory instead.

      Deprecated!
    Sets the size threshold beyond which files are written directly to disk.