public class InputStreamBody extends AbstractContentBody
MultipartEntityBuilder| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
InputStream |
getInputStream() |
void |
writeTo(OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubTypepublic InputStreamBody(InputStream in, String filename)
public InputStreamBody(InputStream in, ContentType contentType, String filename)
public InputStreamBody(InputStream in, ContentType contentType, String filename, long contentLength)
public InputStreamBody(InputStream in, ContentType contentType)
public InputStream getInputStream()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic long getContentLength()
ContentDescriptorpublic String getFilename()
Copyright © 2023. All rights reserved.