private static final class FormDataElement.FileElement extends FormDataElement
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
| Modifier | Constructor and Description |
|---|---|
private |
FileElement(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
createInputStream()
Creates the input stream from which the content of this element
can be read.
|
protected long |
doGetSize()
Returns the size of this element's content in bytes.
|
close, getInputStream, getSize, openprotected java.io.InputStream createInputStream()
throws java.io.IOException
FormDataElementcreateInputStream in class FormDataElementjava.io.IOExceptionprotected long doGetSize()
FormDataElementdoGetSize in class FormDataElement