public class StringBody extends Object implements Request.Body
| 构造器和说明 |
|---|
StringBody(String value,
ContentType contentType) |
StringBody(String value,
ContentType contentType,
Header contentEncoding) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getContent() |
Header |
getContentEncoding() |
int |
getContentLength() |
ContentType |
getContentType() |
void |
writeTo(OutputStream stream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypeHeaderpublic StringBody(@Nonnull
String value,
@Nonnull
ContentType contentType)
public StringBody(@Nonnull
String value,
@Nonnull
ContentType contentType,
Header contentEncoding)
public int getContentLength()
getContentLength 在接口中 Request.Body@Nonnull public ContentType getContentType()
getContentType 在接口中 Request.Bodypublic Header getContentEncoding()
getContentEncoding 在接口中 Request.Bodypublic InputStream getContent()
getContent 在接口中 Request.Bodypublic void writeTo(@Nonnull
OutputStream stream)
writeTo 在接口中 Request.BodyCopyright © 2024. All rights reserved.