Package net.sf.basedb.util.uri
Interface ResumableConnectionManager
- All Superinterfaces:
ConnectionManager
- All Known Implementing Classes:
HttpConnectionManager
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 Summary
Modifier and TypeMethodDescriptiongetInputStream
(long offset) Get an InputStream for reading the contents of the resource.Methods inherited from interface net.sf.basedb.util.uri.ConnectionManager
getInputStream, getMetadata, getURI
-
Method Details
-
getInputStream
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
-