public class MultipartBody extends Object implements RequestBody
Constructor and Description |
---|
MultipartBody(Map<String,Object> form,
Charset charset)
构造
|
Modifier and Type | Method and Description |
---|---|
static MultipartBody |
create(Map<String,Object> form,
Charset charset)
根据已有表单内容,构建MultipartBody
|
String |
getContentType()
获取Multipart的Content-Type类型
|
String |
toString() |
void |
write(OutputStream out)
写出Multiparty数据,不关闭流
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
writeClose
public static MultipartBody create(Map<String,Object> form, Charset charset)
form
- 表单charset
- 编码public String getContentType()
public void write(OutputStream out)
write
in interface RequestBody
out
- out流Copyright © 2024. All rights reserved.