Class FileBodyCounter

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

public class FileBodyCounter extends org.apache.http.entity.mime.content.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.http.entity.mime.content.ContentBody
      Overrides:
      writeTo in class org.apache.http.entity.mime.content.FileBody
      Throws:
      IOException