Back to Acra

IOUtils

web/static/javadoc/5.2.1/org/acra/util/IOUtils.html

latest4.0 KB
Original Source

Skip navigation links

org.acra.util

Class IOUtils


public final classIOUtilsextends[Object](http://d.android.com/reference/java/lang/Object.html?is-external=true "class or interface in java.lang")

Since:4.6.0

Method Summary

All Methods Static Methods Concrete Methods | Modifier and Type | Method and Description | | --- | --- | | static void | deleteFile(File file) | | static void | safeClose(Closeable closeable) Closes a Closeable. | | static void | writeStringToFile(File file, String content) |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

- 

safeClose

public static void safeClose([@Nullable](http://d.android.com/reference/android/support/annotation/Nullable.html?is-external=true "class or interface in android.support.annotation")[Closeable](http://d.android.com/reference/java/io/Closeable.html?is-external=true "class or interface in java.io")closeable)

Closes a Closeable. Parameters:closeable - Closeable to close. If closeable is null then method just returns.

- 

deleteFile

public static void deleteFile([@NonNull](http://d.android.com/reference/android/support/annotation/NonNull.html?is-external=true "class or interface in android.support.annotation")[File](http://d.android.com/reference/java/io/File.html?is-external=true "class or interface in java.io")file)
- 

writeStringToFile

public static void writeStringToFile([@NonNull](http://d.android.com/reference/android/support/annotation/NonNull.html?is-external=true "class or interface in android.support.annotation")[File](http://d.android.com/reference/java/io/File.html?is-external=true "class or interface in java.io")file,[@NonNull](http://d.android.com/reference/android/support/annotation/NonNull.html?is-external=true "class or interface in android.support.annotation")[String](http://d.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")content)
                              throws[IOException](http://d.android.com/reference/java/io/IOException.html?is-external=true "class or interface in java.io")

Throws:IOException

Skip navigation links