public abstract class

FileUtils

extends Object
java.lang.Object
   ↳ com.urbanairship.util.FileUtils

Class Overview

File utility methods.

Summary

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

Public Constructors

public FileUtils ()

Public Methods

public static boolean deleteRecursively (File file)

Deletes a file and/or folder recursively.

Parameters
file The file to delete.
Returns
  • true if the file was deleted, otherwise false.

public static FileUtils.DownloadResult downloadFile (URL url, File file)

Downloads a file to disk.

Parameters
url The URL image.
file The file path where the image will be downloaded.
Returns
  • The download result.
Throws
IOException if output steam read or write operation fails.