Interface ResumableConnectionManager

All Superinterfaces:
ConnectionManager
All Known Implementing Classes:
HttpConnectionManager

public interface ResumableConnectionManager extends ConnectionManager
An extension to the ConnectionManager interface that add support for specifying a start offset when downloading the external file. If the external protocol has support for setting a start offset it is recommended that connection managers are implementing this interface, since otherwise the BASE core may simply read to the specified offset which is wasting bandwith.
Since:
3.3
Author:
Nicklas
  • Method Details

    • getInputStream

      InputStream getInputStream(long offset) throws IOException
      Get an InputStream for reading the contents of the resource.
      Parameters:
      offset - The offset to start reading from
      Returns:
      An InputStream object, or null if the no data is available
      Throws:
      IOException - If there is an error creating the stream