public class InputStreamBody extends AbstractContentBody
MultipartEntityBuilder
Constructor and Description |
---|
InputStreamBody(InputStream in,
org.apache.http.entity.ContentType contentType) |
InputStreamBody(InputStream in,
org.apache.http.entity.ContentType contentType,
String filename) |
InputStreamBody(InputStream in,
String filename) |
InputStreamBody(InputStream in,
String mimeType,
String filename)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
InputStream |
getInputStream() |
String |
getTransferEncoding()
Returns the body descriptors transfer encoding.
|
void |
writeTo(OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubType
@Deprecated public InputStreamBody(InputStream in, String mimeType, String filename)
public InputStreamBody(InputStream in, String filename)
public InputStreamBody(InputStream in, org.apache.http.entity.ContentType contentType, String filename)
public InputStreamBody(InputStream in, org.apache.http.entity.ContentType contentType)
public InputStream getInputStream()
public void writeTo(OutputStream out) throws IOException
IOException
public String getTransferEncoding()
ContentDescriptor
public long getContentLength()
ContentDescriptor
public String getFilename()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.