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

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

Introduction

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

The text is from its open source code.

Implementation

org.apache.commons.fileupload.FileItem has the following implementations.
Click this link to see all its implementation.

Constructor

Method

voiddelete()
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
byte[]get()
Returns the contents of the file item as an array of bytes.
ClassgetClass()
Returns the runtime class of this Object .
StringgetContentType()
Returns the content type passed by the browser or null if not defined.
StringgetFieldName()
Returns the name of the field in the multipart form corresponding to this file item.
InputStreamgetInputStream()
Returns an java.io.InputStream InputStream that can be used to retrieve the contents of the file.
StringgetName()
Returns the original filename in the client's filesystem, as provided by the browser (or other client software).
OutputStreamgetOutputStream()
Returns an java.io.OutputStream OutputStream that can be used for storing the contents of the file.
longgetSize()
Returns the size of the file item.
StringgetString()
Returns the contents of the file item as a String, using the default character encoding.
StringgetString(String encoding)
Returns the contents of the file item as a String, using the specified encoding.
booleanisFormField()
Determines whether or not a FileItem instance represents a simple form field.
booleanisInMemory()
Provides a hint as to whether or not the file contents will be read from memory.
voidsetFieldName(String name)
Sets the field name used to reference this file item.
StringtoString()
Returns a string representation of the object.
voidwrite(File file)
A convenience method to write an uploaded item to disk.