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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

booleanisFormField
Whether or not this item is a simple form field.

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 as an array of bytes.
StringgetCharSet()
Returns the content charset passed by the agent or null if not defined.
StringgetContentType()
Returns the content type passed by the agent or null if not defined.
StringgetFieldName()
Returns the name of the field in the multipart form corresponding to this file item.
FileItemHeadersgetHeaders()
Returns the file item headers.
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.
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.
FilegetStoreLocation()
Returns the java.io.File object for the FileItem's data's temporary location on the disk.
StringgetString()
Returns the contents of the file as a String, using the default character encoding.
StringgetString(final String charset)
Returns the contents of the file as a String, using the specified encoding.
booleanisInMemory()
Provides a hint as to whether or not the file contents will be read from memory.
voidsetHeaders(FileItemHeaders pHeaders)
Sets the file item headers.
StringtoString()
Returns a string representation of this object.
voidwrite(File file)
A convenience method to write an uploaded item to disk.