textbender.g.io
Class InputStreamX

java.lang.Object
  extended by InputStreamX

public final class InputStreamX
extends Object

InputStream utilities.


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

Throws:
RuntimeException - if IOException occurs

tryClose

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

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