This class represents a file or form item that was received within a multipart/form-data
POST request.
After retrieving an instance of this class from a {@link org.apache.commons.fileupload.FileUpload FileUpload} instance (see{@link org.apache.commons.fileupload.servlet.ServletFileUpload#parseRequest(javax.servlet.http.HttpServletRequest)}), you may either request all contents of the file at once using {@link #get()} orrequest an {@link java.io.InputStream InputStream} with{@link #getInputStream()} and process the file without attempting to loadit into memory, which may come handy with large files.
While this interface does not extend javax.activation.DataSource
per se (to avoid a seldom used dependency), several of the defined methods are specifically defined with the same signatures as methods in that interface. This allows an implementation of this interface to also implement javax.activation.DataSource
with minimal additional work.
@version $Id: FileItem.java 1454690 2013-03-09 12:08:48Z simonetripodi $
@since 1.3 additionally implements FileItemHeadersSupport
This class represents a file or form item that was received within a multipart/form-data
POST request.
After retrieving an instance of this class from a {@link org.apache.tomcat.util.http.fileupload.FileUpload FileUpload} instance (see{@link org.apache.tomcat.util.http.fileupload.FileUpload#parseRequest(RequestContext)}), you may either request all contents of the file at once using {@link #get()} orrequest an {@link java.io.InputStream InputStream} with{@link #getInputStream()} and process the file without attempting to loadit into memory, which may come handy with large files.
While this interface does not extend javax.activation.DataSource
per se (to avoid a seldom used dependency), several of the defined methods are specifically defined with the same signatures as methods in that interface. This allows an implementation of this interface to also implement javax.activation.DataSource
with minimal additional work.
@version $Id: FileItem.java 1470437 2013-04-22 10:35:10Z markt $
@since 1.3 additionally implements FileItemHeadersSupport
This class represents a file that was received by Turbine using multipart/form-data
POST request.
After retrieving an instance of this class from the {@link org.apache.turbine.util.ParameterParser ParameterParser} (see{@link org.apache.turbine.util.ParameterParser#getFileItem(String) ParameterParser.getFileItem(String)} and {@link org.apache.turbine.util.ParameterParser#getFileItems(String) ParameterParser.getFileItems(String)}) you can use it to acces the data that was sent by the browser. You may either request all contents of file at once using {@link #get()} or request an {@link java.io.InputStream InputStream} with {@link #getStream()} andprocess the file without attempting to load it into memory, which may come handy with large files. Implements the javax.activation.DataSource interface (which allows for example the adding of a FileItem as an attachment to a multipart email). @author Rafal Krzewski @author Sean Legassick @author Jason van Zyl @version $Id: FileItem.java 264148 2005-08-29 14:21:04Z henning $ @deprecated use commons-fileupload instead
This class represents a file or form item that was received within a multipart/form-data
POST request.
After retrieving an instance of this class from a {@link org.apache.wicket.util.upload.FileUpload FileUpload} instance (see{@link org.apache.wicket.util.upload.FileUpload#parseRequest(javax.servlet.http.HttpServletRequest)}), you may either request all contents of the file at once using {@link #get()} or request an{@link java.io.InputStream InputStream} with {@link #getInputStream()} and process the filewithout attempting to load it into memory, which may come handy with large files.
While this interface does not extend javax.activation.DataSource
per se (to avoid a seldom used dependency), several of the defined methods are specifically defined with the same signatures as methods in that interface. This allows an implementation of this interface to also implement javax.activation.DataSource
with minimal additional work.
@author Rafal Krzewski
@author Sean Legassick
@author Jason van Zyl
@author Martin Cooper
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|