-
- All Implemented Interfaces:
-
com.facebook.RequestOutputStream,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class ProgressNoopOutputStream extends OutputStream implements RequestOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private IntegermaxProgress
-
Constructor Summary
Constructors Constructor Description ProgressNoopOutputStream(Handler callbackHandler)
-
Method Summary
Modifier and Type Method Description final IntegergetMaxProgress()final UnitsetMaxProgress(Integer maxProgress)UnitsetCurrentRequest(GraphRequest currentRequest)final Map<GraphRequest, RequestProgress>getProgressMap()final UnitaddProgress(Long size)Add size to currentRequestProgress's process size Unitwrite(ByteArray buffer)Unitwrite(ByteArray buffer, Integer offset, Integer length)Unitwrite(Integer oneByte)-
-
Constructor Detail
-
ProgressNoopOutputStream
ProgressNoopOutputStream(Handler callbackHandler)
-
-
Method Detail
-
getMaxProgress
final Integer getMaxProgress()
-
setMaxProgress
final Unit setMaxProgress(Integer maxProgress)
-
setCurrentRequest
Unit setCurrentRequest(GraphRequest currentRequest)
-
getProgressMap
final Map<GraphRequest, RequestProgress> getProgressMap()
-
addProgress
final Unit addProgress(Long size)
Add size to currentRequestProgress's process size
-
-
-
-