FileDocCategorySizeDatePackage
FileItemFactory.javaAPI DocApache Tomcat 6.0.142043Fri Jul 20 04:20:36 BST 2007org.apache.tomcat.util.http.fileupload

FileItemFactory

public interface FileItemFactory

A factory interface for creating {@link FileItem} instances. Factories can provide their own custom configuration, over and above that provided by the default file upload implementation.

author
Martin Cooper
version
$Id: FileItemFactory.java 467222 2006-10-24 03:17:11Z markt $

Fields Summary
Constructors Summary
Methods Summary
public FileItemcreateItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName)
Create a new {@link FileItem} instance from the supplied parameters and any local factory configuration.

param
fieldName The name of the form field.
param
contentType The content type of the form field.
param
isFormField true if this is a plain form field; false otherwise.
param
fileName The name of the uploaded file, if any, as supplied by the browser or other client.
return
The newly created file item.