com.ning.http.client
Interface ResumableBodyConsumer

All Superinterfaces:
BodyConsumer
All Known Implementing Classes:
FileBodyConsumer

public interface ResumableBodyConsumer
extends BodyConsumer

Author:
Benjamin Hanzelmann

Method Summary
 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.
 
Methods inherited from interface com.ning.http.client.BodyConsumer
close, consume
 

Method Detail

resume

void resume()
            throws IOException
Prepare this consumer to resume a download, for example by seeking to the end of the underlying file.

Throws:
IOException

getTransferredBytes

long getTransferredBytes()
                         throws IOException
Get the previously transferred bytes, for example the current file size.

Throws:
IOException


Copyright © 2011. All Rights Reserved.