public interface

ResumableListener

com.ning.http.client.resumable.ResumableListener
Known Indirect Subclasses

Class Overview

A listener class that can be used to digest the bytes from an ResumableAsyncHandler

Summary

Public Methods
abstract long length()
Return the length of previously downloaded bytes.
abstract void onAllBytesReceived()
Invoked when all the bytes has been sucessfully transferred.
abstract void onBytesReceived(ByteBuffer byteBuffer)
Invoked when some bytes are available to digest.

Public Methods

public abstract long length ()

Return the length of previously downloaded bytes.

Returns
  • the length of previously downloaded bytes

public abstract void onAllBytesReceived ()

Invoked when all the bytes has been sucessfully transferred.

public abstract void onBytesReceived (ByteBuffer byteBuffer)

Invoked when some bytes are available to digest.

Parameters
byteBuffer the current bytes
Throws
IOException