public interface ResumableConnectionManager extends ConnectionManager
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.Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(long offset)
Get an InputStream for reading the contents of the resource.
|
getInputStream, getMetadata, getURI
java.io.InputStream getInputStream(long offset) throws java.io.IOException
offset
- The offset to start reading fromjava.io.IOException
- If there is an error creating the stream