public class StringEntity extends Object implements HttpEntity
Description:
| 构造器和说明 |
|---|
StringEntity(String body) |
StringEntity(String body,
ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getContent() |
long |
getContentLength() |
String |
getContentString() |
ContentType |
getContentType() |
void |
writeTo(OutputStream outstream) |
public StringEntity(String body)
public StringEntity(String body, ContentType contentType)
public ContentType getContentType()
getContentType 在接口中 HttpEntitypublic long getContentLength()
getContentLength 在接口中 HttpEntitypublic InputStream getContent() throws IOException
getContent 在接口中 HttpEntityIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo 在接口中 HttpEntityIOExceptionpublic String getContentString()
Copyright © 2019. All rights reserved.