Class FileBodyCounter

java.lang.Object
org.apache.hc.client5.http.entity.mime.AbstractContentBody
org.apache.hc.client5.http.entity.mime.FileBody
com.logicaldoc.util.http.FileBodyCounter
All Implemented Interfaces:
org.apache.hc.client5.http.entity.mime.ContentBody, org.apache.hc.client5.http.entity.mime.ContentDescriptor

public class FileBodyCounter extends org.apache.hc.client5.http.entity.mime.FileBody
This is a file body that notifies about the progess a given listener
Since:
7.5
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

  • Method Details

    • getBytesWritten

      public long getBytesWritten()
    • writeTo

      public void writeTo(OutputStream out) throws IOException
      Specified by:
      writeTo in interface org.apache.hc.client5.http.entity.mime.ContentBody
      Overrides:
      writeTo in class org.apache.hc.client5.http.entity.mime.FileBody
      Throws:
      IOException