| 构造器和说明 |
|---|
ResourceBody(HttpResource resource)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContentType()
获取Content-Type
|
Resource |
getResource()
获取资源
|
InputStream |
getStream()
获取body资源流
|
static ResourceBody |
of(HttpResource resource)
创建 Http request body
|
void |
write(OutputStream out)
写出数据,不关闭流
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, writeClosepublic ResourceBody(HttpResource resource)
resource - Body内容public static ResourceBody of(HttpResource resource)
resource - body内容public Resource getResource()
public void write(OutputStream out)
HttpBodypublic InputStream getStream()
HttpBodygetStream 在接口中 HttpBodyInputStreampublic String getContentType()
HttpBodygetContentType 在接口中 HttpBodyCopyright © 2023. All rights reserved.