Class 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
    • Method Detail

      • 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