ix.util
Class IO
java.lang.Object
ix.util.IO
public final class IO
- extends java.lang.Object
Class for useful static I/O methods that don't belong anywhere else.
Method Summary |
static void |
withClosable(java.lang.Object closable,
java.lang.Runnable thunk)
|
static void |
withInputStream(java.io.InputStream s,
java.lang.Runnable thunk)
|
static void |
withOutputStream(java.io.OutputStream s,
java.lang.Runnable thunk)
|
static void |
withReader(java.io.Reader r,
java.lang.Runnable thunk)
|
static void |
withWriter(java.io.Writer w,
java.lang.Runnable thunk)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
withReader
public static void withReader(java.io.Reader r,
java.lang.Runnable thunk)
withWriter
public static void withWriter(java.io.Writer w,
java.lang.Runnable thunk)
withInputStream
public static void withInputStream(java.io.InputStream s,
java.lang.Runnable thunk)
withOutputStream
public static void withOutputStream(java.io.OutputStream s,
java.lang.Runnable thunk)
withClosable
public static void withClosable(java.lang.Object closable,
java.lang.Runnable thunk)