java.lang.Object | |
↳ | com.urbanairship.util.FileUtils |
File utility methods.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | FileUtils.DownloadResult | Result for downloading a file. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FileUtils() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static boolean |
deleteRecursively(File file)
Deletes a file and/or folder recursively.
| ||||||||||
static FileUtils.DownloadResult |
downloadFile(URL url, File file)
Downloads a file to disk.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Deletes a file and/or folder recursively.
file | The file to delete. |
---|
true
if the file was deleted, otherwise false
.
Downloads a file to disk.
url | The URL image. |
---|---|
file | The file path where the image will be downloaded. |
IOException | if output steam read or write operation fails. |
---|