public class OnDiskMavenDownloader extends Object implements Downloader
Downloader that pulls content from the local file system.DEFAULT_NAME| Constructor and Description |
|---|
OnDiskMavenDownloader(Path root) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fetch(BuckEventBus eventBus,
URI uri,
Path output)
Download the given URL and, upon a successful download, place it in
output. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic OnDiskMavenDownloader(Path root) throws FileNotFoundException
FileNotFoundExceptionpublic boolean fetch(BuckEventBus eventBus, URI uri, Path output) throws IOException
Downloaderoutput. Note that
if a Downloader can't handle the URI.scheme then false will be
returned.fetch in interface DownloaderIOException - Should an exception be thrown when downloading.