textbender.g.io
Class OutputStreamX

java.lang.Object
  extended by OutputStreamX

public final class OutputStreamX
extends Object

OutputStream utilities.


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

Throws:
RuntimeException - if IOException occurs

tryClose

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

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