Class TrackingSink
java.lang.Object
okio.ForwardingSink
com.amilesend.client.connection.file.TrackingSink
- All Implemented Interfaces:
- Closeable, Flushable, AutoCloseable, okio.Sink
public class TrackingSink
extends okio.ForwardingSink
Tracking sink to monitor the amount of bytes transferred.
- 
Constructor SummaryConstructorsConstructorDescriptionTrackingSink(@NonNull okio.Sink delegate, @NonNull TransferProgressCallback callback, long totalBytes) Creates a newTrackingSinkinstance.
- 
Method SummaryMethods inherited from class okio.ForwardingSinkclose, delegate, -deprecated_delegate, flush, timeout, toString
- 
Constructor Details- 
TrackingSinkpublic TrackingSink(@NonNull okio.Sink delegate, @NonNull TransferProgressCallback callback, long totalBytes) Creates a newTrackingSinkinstance.- Parameters:
- delegate- the sink to track
- callback- the callback to notify of progress
- totalBytes- the total number of bytes to transfer
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- okio.Sink
- Overrides:
- writein class- okio.ForwardingSink
- Throws:
- IOException
 
 
-