类 HttpclientMultipartFileBody

java.lang.Object
org.apache.http.entity.mime.content.AbstractContentBody
org.apache.http.entity.mime.content.FileBody
com.dtflys.forest.backend.httpclient.body.HttpclientMultipartFileBody
所有已实现的接口:
org.apache.http.entity.mime.content.ContentBody, org.apache.http.entity.mime.content.ContentDescriptor

public class HttpclientMultipartFileBody extends org.apache.http.entity.mime.content.FileBody
HttpClient后端的的对于文件类型的MultipartBody封装,主要用于文件上传以及上传时的进度监听
从以下版本开始:
2020-08-02
作者:
gongjun[jun.gong@thebeastshop.com]
  • 构造器详细资料

    • HttpclientMultipartFileBody

      public HttpclientMultipartFileBody(ForestRequest request, File file, org.apache.http.entity.ContentType contentType, String filename, LifeCycleHandler handler)
  • 方法详细资料

    • writeTo

      public void writeTo(OutputStream out) throws IOException
      指定者:
      writeTo 在接口中 org.apache.http.entity.mime.content.ContentBody
      覆盖:
      writeTo 在类中 org.apache.http.entity.mime.content.FileBody
      抛出:
      IOException