public class InputStreamBody extends AbstractContentBody
MultipartEntityBuilder
Constructor and Description |
---|
InputStreamBody(InputStream in,
ContentType contentType) |
InputStreamBody(InputStream in,
ContentType contentType,
String filename) |
InputStreamBody(InputStream in,
ContentType contentType,
String filename,
long contentLength) |
InputStreamBody(InputStream in,
String filename) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
InputStream |
getInputStream() |
void |
writeTo(OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubType
public InputStreamBody(InputStream in, ContentType contentType)
public InputStreamBody(InputStream in, ContentType contentType, String filename)
public InputStreamBody(InputStream in, ContentType contentType, String filename, long contentLength)
public InputStreamBody(InputStream in, String filename)
public long getContentLength()
ContentDescriptor
public String getFilename()
public InputStream getInputStream()
public void writeTo(OutputStream out) throws IOException
IOException