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. This is what this downloader uses.
URL.openStream()| Modifier and Type | Method and Description |
|---|---|
InputStream |
fetch(URI source)
Fetch the content at a given URI
|
static URIDownloader |
getInstance() |
public static URIDownloader getInstance()
public InputStream fetch(URI source) throws IOException
URIDownloaderfetch in interface URIDownloadersource - the URIInputStreamIOException - unable to find an input stream