Package com.ning.http.client.resumable
Interface ResumableListener
- All Known Implementing Classes:
ResumableRandomAccessFileListener
public interface ResumableListener
A listener class that can be used to digest the bytes from an
ResumableAsyncHandler-
Method Summary
Modifier and TypeMethodDescriptionlonglength()Return the length of previously downloaded bytes.voidInvoked when all the bytes has been sucessfully transferred.voidonBytesReceived(ByteBuffer byteBuffer) Invoked when some bytes are available to digest.
-
Method Details
-
onBytesReceived
Invoked when some bytes are available to digest.- Parameters:
byteBuffer- the current bytes- Throws:
IOException
-
onAllBytesReceived
void onAllBytesReceived()Invoked when all the bytes has been sucessfully transferred. -
length
long length()Return the length of previously downloaded bytes.- Returns:
- the length of previously downloaded bytes
-