Class DiskFileItem

java.lang.Object
org.apache.tomcat.util.http.fileupload.disk.DiskFileItem
All Implemented Interfaces:
FileItem, FileItemHeadersSupport

public class DiskFileItem extends Object implements FileItem

The default implementation of the FileItem interface.

After retrieving an instance of this class from a FileUpload instance (see #parseRequest(org.apache.tomcat.util.http.fileupload.RequestContext)), you may either request all contents of file at once using get() or request an InputStream with getInputStream() and process the file without attempting to load it into memory, which may come handy with large files.

Temporary files, which are created for file items, will be deleted when the associated request is recycled.

Since:
FileUpload 1.1