public interface ResourceFetcher
| Modifier and Type | Method and Description |
|---|---|
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
|
void connect(String id, String url) throws IOException
IOExceptionvoid disconnect()
throws IOException
IOExceptionInputStream retrieve(String name) throws IOException, FileNotFoundException
name - a name of resource to retrieveIOExceptionFileNotFoundExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.