Helper methods for downloading binary files. More...
Public Member Functions | |
| HttpFileTransfer () | |
Static Public Member Functions | |
| static fm.liveswitch.Future< fm.liveswitch.DataBuffer > | downloadFile (String url) |
| Downloads a file from the url. More... | |
| static fm.liveswitch.Future< Object > | downloadFile (String url, final String filePath) |
| Downloads a file from the url. More... | |
Helper methods for downloading binary files.
| fm.liveswitch.HttpFileTransfer.HttpFileTransfer | ( | ) |
|
static |
Downloads a file from the url.
Decompresses using BZip2 if needed.
| url | The URL. |
|
static |
Downloads a file from the url.
Decompresses using BZip2 if needed. Then saves to the file system at filePath.
| url | The URL. |
| filePath | The file path. |