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 SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionFileBodyCounter(File file, FileBodyCounter.ProgressListener listener) FileBodyCounter(File file, org.apache.hc.core5.http.ContentType contentType, String filename, FileBodyCounter.ProgressListener listener) 
- 
Method SummaryMethods inherited from class org.apache.hc.client5.http.entity.mime.FileBodygetContentLength, getFile, getFilename, getInputStreamMethods inherited from class org.apache.hc.client5.http.entity.mime.AbstractContentBodygetCharset, getContentType, getMediaType, getMimeType, getSubType
- 
Constructor Details- 
FileBodyCounterpublic FileBodyCounter(File file, org.apache.hc.core5.http.ContentType contentType, String filename, FileBodyCounter.ProgressListener listener) 
- 
FileBodyCounter
 
- 
- 
Method Details- 
getBytesWrittenpublic long getBytesWritten()
- 
writeTo- Specified by:
- writeToin interface- org.apache.hc.client5.http.entity.mime.ContentBody
- Overrides:
- writeToin class- org.apache.hc.client5.http.entity.mime.FileBody
- Throws:
- IOException
 
 
-