java.lang.Object | ||
↳ | org.apache.http.entity.mime.content.AbstractContentBody | |
↳ | org.apache.http.entity.mime.content.StringBody |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a StringBody from the specified text, mime type and character set.
| |||||||||||
Create a StringBody from the specified text and character set.
| |||||||||||
Create a StringBody from the specified text.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use
writeTo(OutputStream)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.entity.mime.content.AbstractContentBody
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.entity.mime.content.ContentBody
| |||||||||||
From interface
org.apache.http.entity.mime.content.ContentDescriptor
|
Create a StringBody from the specified text, mime type and character set.
text | to be used for the body, not null |
---|---|
mimeType | the mime type, not null |
charset | the character set, may be null , in which case the US-ASCII charset is used |
UnsupportedEncodingException | |
IllegalArgumentException | if the text parameter is null
|
UnsupportedEncodingException |
Create a StringBody from the specified text and character set. The mime type is set to "text/plain".
text | to be used for the body, not null |
---|---|
charset | the character set, may be null , in which case the US-ASCII charset is used |
UnsupportedEncodingException | |
IllegalArgumentException | if the text parameter is null
|
UnsupportedEncodingException |
Create a StringBody from the specified text. The mime type is set to "text/plain". The hosts default charset is used.
text | to be used for the body, not null |
---|
UnsupportedEncodingException | |
IllegalArgumentException | if the text parameter is null
|
UnsupportedEncodingException |
IllegalArgumentException |
---|