Interface ResumableBodyConsumer

All Superinterfaces:
AutoCloseable, BodyConsumer, Closeable
All Known Implementing Classes:
FileBodyConsumer

public interface ResumableBodyConsumer extends BodyConsumer
Author:
Benjamin Hanzelmann
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the previously transferred bytes, for example the current file size.
    void
    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

    consume

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • 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