java.lang.Object |
↳ |
com.ning.http.client.consumers.FileBodyConsumer |
Summary
Public Methods |
void
|
close()
Invoked when all the response bytes has been processed.
|
void
|
consume(ByteBuffer byteBuffer)
Consume the received bytes.
|
long
|
getTransferredBytes()
Get the previously transferred bytes, for example the current file size.
|
void
|
resume()
Prepare this consumer to resume a download, for example by seeking to the end of the underlying file.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
com.ning.http.client.BodyConsumer
abstract
void
|
close()
Invoked when all the response bytes has been processed.
|
abstract
void
|
consume(ByteBuffer byteBuffer)
Consume the received bytes.
|
|
From interface
com.ning.http.client.ResumableBodyConsumer
abstract
long
|
getTransferredBytes()
Get the previously transferred bytes, for example the current file size.
|
abstract
void
|
resume()
Prepare this consumer to resume a download, for example by seeking to the end of the underlying file.
|
|
Public Constructors
public
FileBodyConsumer
(RandomAccessFile file)
Public Methods
public
void
close
()
Invoked when all the response bytes has been processed.
public
void
consume
(ByteBuffer byteBuffer)
Consume the received bytes.
Parameters
byteBuffer
| a ByteBuffer represntation of the response's chunk. |
public
long
getTransferredBytes
()
Get the previously transferred bytes, for example the current file size.
public
void
resume
()
Prepare this consumer to resume a download, for example by seeking to the end of the underlying file.