textbender.g.io
Class WriterX

java.lang.Object
  extended by WriterX

public final class WriterX
extends Object

Writer utilities.


Method Summary
static void runClose(Writer out)
          Same as out.close(), but throws only runtime exceptions.
static IOException tryClose(Writer out)
          Same as out.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(Writer out)
Same as out.close(), but throws only runtime exceptions.

Throws:
RuntimeException - if IOException occurs

tryClose

public static IOException tryClose(Writer out)
Same as out.close(), but throws no exceptions.

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