-
- All Implemented Interfaces:
-
com.facebook.RequestOutputStream,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class ProgressOutputStream extends FilterOutputStream implements RequestOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private LongbatchProgressprivate final LongmaxProgressprivate final OutputStreamout
-
Constructor Summary
Constructors Constructor Description ProgressOutputStream(OutputStream out, GraphRequestBatch requests, Map<GraphRequest, RequestProgress> progressMap, Long maxProgress)
-
Method Summary
Modifier and Type Method Description final LonggetBatchProgress()final UnitsetBatchProgress(Long batchProgress)final LonggetMaxProgress()UnitsetCurrentRequest(GraphRequest request)Unitwrite(ByteArray buffer)Unitwrite(ByteArray buffer, Integer offset, Integer length)Unitwrite(Integer oneByte)Unitclose()-
-
Constructor Detail
-
ProgressOutputStream
ProgressOutputStream(OutputStream out, GraphRequestBatch requests, Map<GraphRequest, RequestProgress> progressMap, Long maxProgress)
-
-
Method Detail
-
getBatchProgress
final Long getBatchProgress()
-
setBatchProgress
final Unit setBatchProgress(Long batchProgress)
-
getMaxProgress
final Long getMaxProgress()
-
setCurrentRequest
Unit setCurrentRequest(GraphRequest request)
-
-
-
-