Java org.apache.commons.fileupload.disk DiskFileItemFactory fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.fileupload.disk DiskFileItemFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.fileupload.disk DiskFileItemFactory.

The text is from its open source code.

Subclass

org.apache.commons.fileupload.disk.DiskFileItemFactory has subclasses.
Click this link to see all its subclasses.

Field

intDEFAULT_SIZE_THRESHOLD
The default threshold above which uploads will be stored on disk.

Constructor

DiskFileItemFactory()
Constructs an unconfigured instance of this class.
DiskFileItemFactory(int sizeThreshold, File repository)
Constructs a preconfigured instance of this class.

Method

FileItemcreateItem(String fieldName, String contentType, boolean isFormField, String fileName)
Create a new org.apache.commons.fileupload.disk.DiskFileItem instance from the supplied parameters and the local factory configuration.
FilegetRepository()
Returns the directory used to temporarily store files that are larger than the configured size threshold.
voidsetFileCleaningTracker(FileCleaningTracker pTracker)
Returns the tracker, which is responsible for deleting temporary files.
voidsetRepository(File repository)
Sets the directory used to temporarily store files that are larger than the configured size threshold.
voidsetSizeThreshold(int sizeThreshold)
Sets the size threshold beyond which files are written directly to disk.