@ThreadSafe public final class InputStreamX extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void runClose(InputStream in)
RuntimeException - if IOException occurs.public static IOException tryClose(InputStream in)