Example usage for Java org.apache.commons.fileupload FileItem fields, constructors, methods, implement or subclass
The text is from its open source code.
void | delete() 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. |
Class> | getClass() Returns the runtime class of this Object . |
String | getContentType() Returns the content type passed by the browser or null if not defined. |
String | getFieldName() Returns the name of the field in the multipart form corresponding to this file item. |
InputStream | getInputStream() Returns an java.io.InputStream InputStream that can be used to retrieve the contents of the file. |
String | getName() Returns the original filename in the client's filesystem, as provided by the browser (or other client software). |
OutputStream | getOutputStream() Returns an java.io.OutputStream OutputStream that can be used for storing the contents of the file. |
long | getSize() Returns the size of the file item. |
String | getString() Returns the contents of the file item as a String, using the default character encoding. |
String | getString(String encoding) Returns the contents of the file item as a String, using the specified encoding. |
boolean | isFormField() Determines whether or not a FileItem instance represents a simple form field. |
boolean | isInMemory() Provides a hint as to whether or not the file contents will be read from memory. |
void | setFieldName(String name) Sets the field name used to reference this file item. |
String | toString() Returns a string representation of the object. |
void | write(File file) A convenience method to write an uploaded item to disk. |