ContentBody, ContentDescriptorpublic class InputStreamBody extends AbstractContentBody
MultipartEntityBuilder| Constructor | Description |
|---|---|
InputStreamBody(java.io.InputStream in,
java.lang.String filename) |
|
InputStreamBody(java.io.InputStream in,
java.lang.String mimeType,
java.lang.String filename) |
Deprecated.
|
InputStreamBody(java.io.InputStream in,
org.apache.http.entity.ContentType contentType) |
|
InputStreamBody(java.io.InputStream in,
org.apache.http.entity.ContentType contentType,
java.lang.String filename) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getContentLength() |
Returns the body descriptors content-length.
|
java.lang.String |
getFilename() |
|
java.io.InputStream |
getInputStream() |
|
java.lang.String |
getTransferEncoding() |
Returns the body descriptors transfer encoding.
|
void |
writeTo(java.io.OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubType@Deprecated
public InputStreamBody(java.io.InputStream in,
java.lang.String mimeType,
java.lang.String filename)
InputStreamBody(InputStream, ContentType,
String) or MultipartEntityBuilderpublic InputStreamBody(java.io.InputStream in,
java.lang.String filename)
public InputStreamBody(java.io.InputStream in,
org.apache.http.entity.ContentType contentType,
java.lang.String filename)
public InputStreamBody(java.io.InputStream in,
org.apache.http.entity.ContentType contentType)
public java.io.InputStream getInputStream()
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getTransferEncoding()
ContentDescriptorpublic long getContentLength()
ContentDescriptorpublic java.lang.String getFilename()