Package com.logicaldoc.util.http
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
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionFileBodyCounter(File file, FileBodyCounter.ProgressListener listener) FileBodyCounter(File file, org.apache.hc.core5.http.ContentType contentType, String filename, FileBodyCounter.ProgressListener listener)  - 
Method Summary
Methods inherited from class org.apache.hc.client5.http.entity.mime.FileBody
getContentLength, getFile, getFilename, getInputStreamMethods inherited from class org.apache.hc.client5.http.entity.mime.AbstractContentBody
getCharset, getContentType, getMediaType, getMimeType, getSubType 
- 
Constructor Details
- 
FileBodyCounter
public FileBodyCounter(File file, org.apache.hc.core5.http.ContentType contentType, String filename, FileBodyCounter.ProgressListener listener)  - 
FileBodyCounter
 
 - 
 - 
Method Details
- 
getBytesWritten
public long getBytesWritten() - 
writeTo
- Specified by:
 writeToin interfaceorg.apache.hc.client5.http.entity.mime.ContentBody- Overrides:
 writeToin classorg.apache.hc.client5.http.entity.mime.FileBody- Throws:
 IOException
 
 -