|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceFetcher
An interface defining resource downloading contract
Method Summary | |
---|---|
void |
connect(String id,
String url)
Connect and start transfer session |
void |
disconnect()
Disconnect and complete transfer session |
InputStream |
retrieve(String name)
Retrieves resource as InputStream |
Method Detail |
---|
void connect(String id, String url) throws IOException
IOException
void disconnect() throws IOException
IOException
InputStream retrieve(String name) throws IOException, FileNotFoundException
name
- a name of resource to retrieve
IOException
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |