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
IOException
void disconnect() throws IOException
IOException
InputStream retrieve(String name) throws IOException, FileNotFoundException
name
- a name of resource to retrieveIOException
FileNotFoundException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.