public class InputStreamBody extends AbstractContentBody
Description:
| 构造器和说明 |
|---|
InputStreamBody(InputStream in,
ContentType contentType) |
InputStreamBody(InputStream in,
ContentType contentType,
String filename) |
InputStreamBody(InputStream in,
String filename) |
InputStreamBody(InputStream in,
String mimeType,
String filename) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getMimeTypepublic InputStreamBody(InputStream in, String mimeType, String filename)
public InputStreamBody(InputStream in, String filename)
public InputStreamBody(InputStream in, ContentType contentType, String filename)
public InputStreamBody(InputStream in, ContentType contentType)
public InputStream getInputStream()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic String getTransferEncoding()
ContentBodypublic long getContentLength()
ContentBodypublic String getFilename()
Copyright © 2019. All rights reserved.