public interface ConnectionManager
ConnectionManagerFactory
objects. Implementations
doesn't have to be thread-safe since a new connection manager is created
for each use of an URI. Implementations doens't have to provide a public
no-argument constructor.
NOTE! Also consider implementing the ResumableConnectionManager
interface if the protocol supports setting a start offset for the
download.
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Get an InputStream for reading the contents of the resource.
|
UriMetadata |
getMetadata()
Get metadata about the resource.
|
URI |
getURI()
Get the URI of the resource we are interested in.
|
URI getURI()
InputStream getInputStream() throws IOException
IOException
- If there is an error creating the streamUriMetadata getMetadata() throws IOException
IOException
- If there is an error getting the metadata