Package org.apache.maven.index.updater
Interface ResourceFetcher
- All Known Implementing Classes:
DefaultIndexUpdater.FileFetcher
public interface ResourceFetcher
An interface defining resource downloading contract
- Author:
- Eugene Kuleshov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Connect and start transfer sessionvoid
Disconnect and complete transfer sessionRetrieves resource as InputStream
-
Method Details
-
connect
Connect and start transfer session- Throws:
IOException
-
disconnect
Disconnect and complete transfer session- Throws:
IOException
-
retrieve
Retrieves resource as InputStream- Parameters:
name
- a name of resource to retrieve- Throws:
IOException
FileNotFoundException
-