| java.lang.Object net.jforum.util.legacy.commons.fileupload.disk.DiskFileItem net.jforum.util.legacy.commons.fileupload.DefaultFileItem
DefaultFileItem | public class DefaultFileItem extends DiskFileItem (Code) | | The default implementation of the
org.apache.commons.fileupload.FileItem FileItem interface.
After retrieving an instance of this class from a
org.apache.commons.fileupload.DiskFileUpload DiskFileUpload instance (see
org.apache.commons.fileupload.DiskFileUpload.parseRequest(javax.servlet.http.HttpServletRequest) ), you may
either request all contents of file at once using
DefaultFileItem.get() or
request an
java.io.InputStream InputStream with
DefaultFileItem.getInputStream() and process the file without attempting to load
it into memory, which may come handy with large files.
author: Rafal Krzewski author: Sean Legassick author: Jason van Zyl author: John McNally author: Martin Cooper author: Sean C. Sullivan version: $Id: DefaultFileItem.java,v 1.3 2005/07/26 03:05:00 rafaelsteil Exp $ |
Constructor Summary | |
public | DefaultFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository) Constructs a new DefaultFileItem instance. |
DefaultFileItem | public DefaultFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository)(Code) | | Constructs a new DefaultFileItem instance.
Parameters: fieldName - The name of the form field. Parameters: contentType - The content type passed by the browser ornull if not specified. Parameters: isFormField - Whether or not this item is a plain form field, asopposed to a file upload. Parameters: fileName - The original filename in the user's filesystem, ornull if not specified. Parameters: sizeThreshold - The threshold, in bytes, below which items will beretained in memory and above which they will bestored as a file. Parameters: repository - The data repository, which is the directory inwhich files will be created, should the item sizeexceed the threshold. |
Fields inherited from net.jforum.util.legacy.commons.fileupload.disk.DiskFileItem | final public static String DEFAULT_CHARSET(Code)(Java Doc)
|
|
|