public class InputStreamBody extends AbstractContentBody
MultipartEntityBuilder| Constructor and Description |
|---|
InputStreamBody(java.io.InputStream in,
ContentType contentType) |
InputStreamBody(java.io.InputStream in,
ContentType contentType,
java.lang.String filename) |
InputStreamBody(java.io.InputStream in,
java.lang.String filename) |
InputStreamBody(java.io.InputStream in,
java.lang.String mimeType,
java.lang.String filename)
Deprecated.
|
| Modifier and Type | Method and 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,
ContentType contentType,
java.lang.String filename)
public InputStreamBody(java.io.InputStream in,
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()