Example usage for Java org.apache.commons.fileupload.disk DiskFileItem fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isFormField Whether or not this item is a simple form field. |
DiskFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository) Constructs a new DiskFileItem instance. |
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 as an array of bytes. |
String | getCharSet() Returns the content charset passed by the agent or null if not defined. |
String | getContentType() Returns the content type passed by the agent or null if not defined. |
String | getFieldName() Returns the name of the field in the multipart form corresponding to this file item. |
FileItemHeaders | getHeaders() Returns the file item headers. |
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. |
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. |
File | getStoreLocation() Returns the java.io.File object for the FileItem 's data's temporary location on the disk. |
String | getString() Returns the contents of the file as a String, using the default character encoding. |
String | getString(final String charset) Returns the contents of the file as a String, using the specified encoding. |
boolean | isInMemory() Provides a hint as to whether or not the file contents will be read from memory. |
void | setHeaders(FileItemHeaders pHeaders) Sets the file item headers. |
String | toString() Returns a string representation of this object. |
void | write(File file) A convenience method to write an uploaded item to disk. |