public interface Downloader extends Toolchain
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
| 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. |
default String |
getName() |
static final String DEFAULT_NAME
boolean fetch(BuckEventBus eventBus, URI uri, Path output) throws IOException
output. Note that
if a Downloader can't handle the URI.scheme then false will be
returned.IOException - Should an exception be thrown when downloading.