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 TypeMethodDescriptionvoidConnect and start transfer sessionvoidDisconnect 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:
IOExceptionFileNotFoundException
-