public class StringBody extends AbstractContentBody
MultipartEntityBuilder| 构造器和说明 |
|---|
StringBody(String text,
ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
Reader |
getReader() |
void |
writeTo(OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubTypepublic StringBody(String text, ContentType contentType)
public Reader getReader()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic long getContentLength()
ContentDescriptorpublic String getFilename()
Copyright © 2023. All rights reserved.