Android SDK Version
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
Modifier and TypeFieldDescription
private LongbatchProgress
private final LongmaxProgress
private final OutputStreamout
Constructor Summary
ConstructorDescription
ProgressOutputStream(OutputStream out, GraphRequestBatch requests, Map<GraphRequest, RequestProgress> progressMap, Long maxProgress)
Method Summary
Modifier and TypeMethodDescription
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()
Methods inherited from class com.facebook.ProgressOutputStream
flush
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ProgressOutputStream

ProgressOutputStream(OutputStream out, GraphRequestBatch requests, Map<GraphRequest, RequestProgress> progressMap, Long maxProgress)
Method Detail

getBatchProgress

 final LonggetBatchProgress()

setBatchProgress

 final UnitsetBatchProgress(Long batchProgress)

getMaxProgress

 final LonggetMaxProgress()

setCurrentRequest

UnitsetCurrentRequest(GraphRequest request)

write

Unitwrite(ByteArray buffer)

write

Unitwrite(ByteArray buffer, Integer offset, Integer length)

write

Unitwrite(Integer oneByte)

close

Unitclose()