public interface ResourceFetcher
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String id,
java.lang.String url)
Connect and start transfer session
|
void |
disconnect()
Disconnect and complete transfer session
|
java.io.InputStream |
retrieve(java.lang.String name)
Retrieves resource as InputStream
|
void connect(java.lang.String id, java.lang.String url) throws java.io.IOException
java.io.IOException
void disconnect() throws java.io.IOException
java.io.IOException
java.io.InputStream retrieve(java.lang.String name) throws java.io.IOException, java.io.FileNotFoundException
name
- a name of resource to retrievejava.io.IOException
java.io.FileNotFoundException