public class FilePara extends Object
| 构造器和说明 |
|---|
FilePara(String type,
String fileName,
byte[] content) |
FilePara(String type,
String fileName,
File file) |
FilePara(String type,
String fileName,
InputStream stream) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getContent() |
File |
getFile() |
String |
getFileName() |
InputStream |
getStream() |
String |
getType() |
okhttp3.RequestBody |
toRequestBody(okhttp3.MediaType contentType) |
String |
toString() |
public FilePara(String type, String fileName, InputStream stream)
public okhttp3.RequestBody toRequestBody(okhttp3.MediaType contentType)
public String getType()
public String getFileName()
public byte[] getContent()
public File getFile()
public InputStream getStream()
Copyright © 2025 zhouxu. All rights reserved.