Package net.sf.basedb.util.uri
Interface ResumableConnectionManager
-
- All Superinterfaces:
ConnectionManager
- All Known Implementing Classes:
HttpConnectionManager
public interface ResumableConnectionManager extends ConnectionManager
An extension to theConnectionManager
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getInputStream(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 Detail
-
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
-
-