Package org.oscim.utils
Class IOUtils
- java.lang.Object
-
- org.oscim.utils.IOUtils
-
public final class IOUtils extends java.lang.ObjectA utility class with IO-specific helper methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(java.io.InputStream closeable)static voidcloseQuietly(java.io.OutputStream closeable)Invokes theCloseable.close()method on the given object.
-
-
-
Method Detail
-
closeQuietly
public static void closeQuietly(java.io.OutputStream closeable)
Invokes theCloseable.close()method on the given object. If anIOExceptionoccurs during the method call, it will be caught and logged on levelLevel.WARNING.- Parameters:
closeable- the data source which should be closed (may be null).
-
closeQuietly
public static void closeQuietly(java.io.InputStream closeable)
-
-