# Uses of Class
org.apache.commons.fileupload2.core.DiskFileItem

Packages that use DiskFileItem
Package
Description
org.apache.commons.fileupload2.core
A component for handling HTML file uploads as specified by RFC 1867.
org.apache.commons.fileupload2.jakarta.servlet6
An implementation of `AbstractFileUpload` for use in servlets conforming to the namespace `jakarta.servlet`.

## Uses of DiskFileItem in org.apache.commons.fileupload2.core

Subclasses with type arguments of type DiskFileItem in org.apache.commons.fileupload2.core
Modifier and Type
Class
Description
`static class`
`DiskFileItem.Builder`
Builds a new `DiskFileItem` instance.
Classes in org.apache.commons.fileupload2.core that implement interfaces with type arguments of type DiskFileItem
Modifier and Type
Class
Description
`final class`
`DiskFileItem`
The default implementation of the `FileItem` interface.
`final class`
`DiskFileItemFactory`
The default `FileItemFactory` implementation.
Methods in org.apache.commons.fileupload2.core that return DiskFileItem
Modifier and Type
Method
Description
`DiskFileItem`
DiskFileItem.`delete()`
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
`DiskFileItem`
DiskFileItem.Builder.`get()`
Constructs a new instance.
`DiskFileItem`
DiskFileItem.`setCharsetDefault(Charset charset)`
Sets the default charset for use when no explicit charset parameter is provided by the sender.
`DiskFileItem`
DiskFileItem.`setFieldName(String fieldName)`
Sets the field name used to reference this file item.
`DiskFileItem`
DiskFileItem.`setFormField(boolean state)`
Specifies whether or not a `FileItem` instance represents a simple form field.
`DiskFileItem`
DiskFileItem.`setHeaders(FileItemHeaders headers)`
Sets the file item headers.
`DiskFileItem`
DiskFileItem.`write(Path file)`
Writes an uploaded item to disk.

## Uses of DiskFileItem in org.apache.commons.fileupload2.jakarta.servlet6

Subclasses with type arguments of type DiskFileItem in org.apache.commons.fileupload2.jakarta.servlet6
Modifier and Type
Class
Description
`class`
`JakartaServletDiskFileUpload`
A JakartaServletFileUpload for `DiskFileItem` and `DiskFileItemFactory`.