| org.apache.commons.fileupload.FileItemFactory
All known Subclasses: org.apache.commons.fileupload.disk.DiskFileItemFactory,
FileItemFactory | public interface FileItemFactory (Code) | | A factory interface for creating
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 479262 2006-11-26 03:09:24Z niallp $ |
Method Summary | |
FileItem | createItem(String fieldName, String contentType, boolean isFormField, String fileName) Create a new
FileItem instance from the supplied parameters and
any local factory configuration.
Parameters: fieldName - The name of the form field. Parameters: contentType - The content type of the form field. Parameters: isFormField - true if this is a plain form field;false otherwise. Parameters: fileName - The name of the uploaded file, if any, as suppliedby the browser or other client. |
createItem | FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName)(Code) | | Create a new
FileItem instance from the supplied parameters and
any local factory configuration.
Parameters: fieldName - The name of the form field. Parameters: contentType - The content type of the form field. Parameters: isFormField - true if this is a plain form field;false otherwise. Parameters: fileName - The name of the uploaded file, if any, as suppliedby the browser or other client. The newly created file item. |
|
|