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