Package com.rometools.utils
Class IO
- java.lang.Object
-
- com.rometools.utils.IO
-
public final class IO extends Object
Utility class to handle I/O operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(Closeable closeable)Closes aCloseableobject without suppressing a possibleIOException.static voidcloseQuietly(Closeable closeable)Closes aCloseableobject and suppresses a possibleIOException.
-
-
-
Method Detail
-
close
public static void close(Closeable closeable) throws IOException
Closes aCloseableobject without suppressing a possibleIOException.- Parameters:
closeable- TheCloseableto close- Throws:
IOException- when theCloseablecan't be closed
-
closeQuietly
public static void closeQuietly(Closeable closeable)
Closes aCloseableobject and suppresses a possibleIOException.- Parameters:
closeable- TheCloseableto close
-
-