public interface IO
| Modifier and Type | Method and Description |
|---|---|
bolts.Task<java.io.File> |
downloadFileAsync(java.lang.String srcUrl,
java.lang.String dest)
Downloads a file from a URL and stores it locally on the device.
|
java.io.File |
findDownloadedFile(java.lang.String filename)
Finds a downloaded file matching the name.
|
java.io.InputStream |
localRetrieve(java.lang.String key)
Retrieves data saved locally to the device
|
void |
localSave(java.lang.String key,
byte[] data)
Save the data to the local device
|
void |
logWarn(java.lang.String tag,
java.lang.String message)
Outputs a warn level message to the logger
|
void |
logWarn(java.lang.String tag,
java.lang.String message,
java.lang.Throwable tr)
Outputs a warn level message to the logger with an exception or error associated with the message
|
void localSave(java.lang.String key,
byte[] data)
throws java.io.IOException
key - Key value identifying the datadata - Data to savejava.io.IOException - If I/O error occursjava.io.InputStream localRetrieve(java.lang.String key)
throws java.io.IOException
key - Key value identifying the datajava.io.IOException - If I/O error occursbolts.Task<java.io.File> downloadFileAsync(java.lang.String srcUrl,
java.lang.String dest)
findDownloadedFile(String).srcUrl - URL to retrieve the file fromdest - Where to store the downloaded filejava.io.File findDownloadedFile(java.lang.String filename)
File.exists()filename - File to search forvoid logWarn(java.lang.String tag,
java.lang.String message)
tag - Value identifying the messagemessage - Message to logvoid logWarn(java.lang.String tag,
java.lang.String message,
java.lang.Throwable tr)
tag - Value identifying the messagemessage - Message to logtr - Additional information to provide to the logger