public class StackedDownloader extends Object implements Downloader
Downloader which is composed of many other downloaders. When asked to download a
resource, these are each called in order until one succeeds or the final one fails.DEFAULT_NAME| Modifier and Type | Method and Description |
|---|---|
static Downloader |
createFromConfig(BuckConfig config,
ToolchainProvider toolchainProvider,
TargetConfiguration toolchainTargetConfiguration) |
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 static Downloader createFromConfig(BuckConfig config, ToolchainProvider toolchainProvider, TargetConfiguration toolchainTargetConfiguration)
public boolean fetch(BuckEventBus eventBus, URI uri, Path output)
Downloaderoutput. Note that
if a Downloader can't handle the URI.scheme then false will be
returned.fetch in interface Downloader