| Modifier and Type | Class and Description |
|---|---|
| private static class | FormDataElement.
A form data element based on a byte array. |
| private static class | FormDataElement.
A form data element based on a file. |
| Modifier and Type | Field and Description |
|---|---|
| private InputStream | inputStream
The input stream from which the content of this element can be read. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected abstract InputStream | |
| protected abstract long | |
| private static FormDataElement | |
| private static FormDataElement | |
| pack-priv InputStream | |
| pack-priv long | |
| pack-priv void |
| inputStream | back to summary |
|---|---|
| private InputStream inputStream The input stream from which the content of this element can be read. | |
| FormDataElement | back to summary |
|---|---|
| pack-priv FormDataElement() | |
| close | back to summary |
|---|---|
| pack-priv void close() throws IOException Closes this element and releases all resources associated with it. This method makes the element's size and content unavailable for retrieval. This method is a no op if the element is already closed. | |
| createInputStream | back to summary |
|---|---|
| protected abstract InputStream createInputStream() throws IOException Creates the input stream from which the content of this element can be read. | |
| doGetSize | back to summary |
|---|---|
| protected abstract long doGetSize() Returns the size of this element's content in bytes. | |
| fwkCreateFromByteArray | back to summary |
|---|---|
| private static FormDataElement fwkCreateFromByteArray(byte[] byteArray) Creates a new FormDataElement from a byte array. | |
| fwkCreateFromFile | back to summary |
|---|---|
| private static FormDataElement fwkCreateFromFile(String fileName) Creates a new FormDataElement from a file. | |
| getInputStream | back to summary |
|---|---|
| pack-priv InputStream getInputStream() Returns the input stream from which the content of this element can be read. | |
| getSize | back to summary |
|---|---|
| pack-priv long getSize() Returns the size of this element's content in bytes. | |
| open | back to summary |
|---|---|
| pack-priv void open() throws IOException Opens this element and makes its size and content available for retrieval. | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected InputStream | createInputStream()
Implements abstract com. Creates the input stream from which the content of this element can be read. |
| protected long | doGetSize()
Implements abstract com. Returns the size of this element's content in bytes. |
| byteArray | back to summary |
|---|---|
| private final byte[] byteArray | |
| ByteArrayElement | back to summary |
|---|---|
| private ByteArrayElement(byte[] byteArray) | |
| createInputStream | back to summary |
|---|---|
| protected InputStream createInputStream() Implements abstract com. Doc from com. Creates the input stream from which the content of this element can be read.
| |
| doGetSize | back to summary |
|---|---|
| protected long doGetSize() Implements abstract com. Doc from com. Returns the size of this element's content in bytes.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected InputStream | createInputStream()
Implements abstract com. Creates the input stream from which the content of this element can be read. |
| protected long | doGetSize()
Implements abstract com. Returns the size of this element's content in bytes. |
| file | back to summary |
|---|---|
| private final File file | |
| FileElement | back to summary |
|---|---|
| private FileElement(String filename) | |
| createInputStream | back to summary |
|---|---|
| protected InputStream createInputStream() throws IOException Implements abstract com. Doc from com. Creates the input stream from which the content of this element can be read.
| |
| doGetSize | back to summary |
|---|---|
| protected long doGetSize() Implements abstract com. Doc from com. Returns the size of this element's content in bytes.
| |