textbender.g.io
Class ReaderX

java.lang.Object
  extended by ReaderX

public final class ReaderX
extends Object

Reader utilities.


Method Summary
static void runClose(Reader in)
          Same as in.close(), but throws only runtime exceptions.
static IOException tryClose(Reader in)
          Same as in.close(), but throws no exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

runClose

public static void runClose(Reader in)
Same as in.close(), but throws only runtime exceptions.

Throws:
RuntimeException - if IOException occurs

tryClose

public static IOException tryClose(Reader in)
Same as in.close(), but throws no exceptions.

Returns:
null if in closed normally; otherwise the IOException that occured