public class StringBody extends AbstractContentBody
MultipartEntityBuilder| Constructor and Description |
|---|
StringBody(java.lang.String text,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
java.lang.String |
getFilename() |
java.io.Reader |
getReader() |
void |
writeTo(java.io.OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubTypepublic StringBody(java.lang.String text,
ContentType contentType)
public java.io.Reader getReader()
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic long getContentLength()
ContentDescriptorpublic java.lang.String getFilename()