| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDownloader
Manages downloading of files via HTTP.
| Method Summary | |
|---|---|
 void | 
download(java.lang.String url,
         java.io.OutputStream dest)
Downloads the file at url and outputs its contents to dest.  | 
 java.lang.String | 
downloadAsString(java.lang.String url)
Returns the contents of url as a String.  | 
| Method Detail | 
|---|
void download(java.lang.String url,
              java.io.OutputStream dest)
              throws java.io.IOException,
                     java.net.MalformedURLException
url - A string specifying the URL of the remote file to download.dest - The output destination for the downloaded data.
java.io.IOException - If the remote file cannot be downloaded.
java.net.MalformedURLException - If url is a malformed URL.
java.lang.String downloadAsString(java.lang.String url)
                                  throws java.io.IOException,
                                         java.net.MalformedURLException
url - A string specifying the URL of the remote file to download.
java.io.IOException - If the remote file cannot be downloaded.
java.net.MalformedURLException - If url is a malformed URL.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||