org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | data
The contents of the file contained in this part. |
| private final String | filename
The name of the file contained in this part. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ByteArrayBody(final byte[]
the array of byte. data, final ContentType the contentType)ContentTypePublic constructor that creates a new ByteArrayBody. |
| public | ByteArrayBody(final byte[]
The contents of the file contained in this part. data, final String The name of the file contained in this part. filename)Creates a new ByteArrayBody. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCharset()
Overrides org. Implements org. The body descriptors character set, defaulted appropriately for the MIME type. |
| public long | getContentLength()
Implements org. |
| public String | |
| public void | writeTo(final OutputStream out)
Implements org. |
| data | back to summary |
|---|---|
| private final byte[] data The contents of the file contained in this part. | |
| filename | back to summary |
|---|---|
| private final String filename The name of the file contained in this part. | |
| ByteArrayBody | back to summary |
|---|---|
public ByteArrayBody(final byte[] data, final ContentType contentType, final String filename)
| |
| ByteArrayBody | back to summary |
|---|---|
| public ByteArrayBody(final byte[] data, final ContentType contentType) Public constructor that creates a new ByteArrayBody.
| |
| ByteArrayBody | back to summary |
|---|---|
| public ByteArrayBody(final byte[] data, final String filename) Creates a new ByteArrayBody.
| |
| getCharset | back to summary |
|---|---|
| public String getCharset() Overrides org. Implements org. Doc from org. The body descriptors character set, defaulted appropriately for the MIME type.
For | |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Implements org. Doc from org. Returns the body descriptors content-length.
| |
| getFilename | back to summary |
|---|---|
| public String getFilename() Implements org.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream out) throws IOException Implements org.
| |