blob: df90da326b1ac1b60c6154cbfd30b504c0f37518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package cgeo.geocaching.utils;
import java.io.Closeable;
import java.io.IOException;
final public class IOUtils {
private IOUtils() {
// utility class
}
public static void closeQuietly(final Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
} catch (final IOException e) {
Log.w("closeQuietly: unable to close " + closeable, e);
}
}
}
}
|