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, open
protected java.io.InputStream createInputStream() throws java.io.IOException
FormDataElement
createInputStream
in class FormDataElement
java.io.IOException
protected long doGetSize()
FormDataElement
doGetSize
in class FormDataElement