- java.lang.Object
-
- com.ejlchina.okhttps.FilePara
-
public class FilePara extends Object
- 从以下版本开始:
- 2.5.0 从 HttpTask 中分离
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]getContent()FilegetFile()StringgetFileName()InputStreamgetStream()StringgetType()okhttp3.RequestBodytoRequestBody(okhttp3.MediaType contentType)StringtoString()
-
-
-
方法详细资料
-
toRequestBody
public okhttp3.RequestBody toRequestBody(okhttp3.MediaType contentType)
-
getType
public String getType()
-
getFileName
public String getFileName()
-
getContent
public byte[] getContent()
-
getFile
public File getFile()
-
getStream
public InputStream getStream()
-
-