public final class DefaultURIDownloader extends Object implements URIDownloader
URL's API doc guarantees that an implementation can handle the
following schemes: http, https, ftp, file and jar.
We choose however not to provide https for certificate handling reasons, which is a pain to get right.
URL.openStream()| Modifier and Type | Field and Description |
|---|---|
private static URIDownloader |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
DefaultURIDownloader() |
private static final URIDownloader instance
public static URIDownloader getInstance()
public InputStream fetch(URI source) throws IOException
URIDownloaderfetch in interface URIDownloadersource - the URIInputStreamIOException - unable to fetchCopyright © 2012. All Rights Reserved.