public final class DefaultURIDownloader extends java.lang.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 |
|---|---|
java.io.InputStream |
fetch(java.net.URI source)
Fetch the content at a given URI
|
static URIDownloader |
getInstance() |
public static URIDownloader getInstance()
public java.io.InputStream fetch(java.net.URI source)
throws java.io.IOException
URIDownloaderfetch in interface URIDownloadersource - the URIInputStreamjava.io.IOException - unable to find an input stream