|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.io.JvCloser
public final class JvCloser
Utility class containing methods to close InputStreams, Connections, etc. This class exists because the close() methods throw some type of exception which must be caught thereby muddying up the already muddy code. This class just hides the try...catch.
| Method Summary | |
|---|---|
static void |
close(InputStream s)
Close an InputStream. |
static void |
close(OutputStream s)
Close an OutputStream. |
static void |
close(Reader r)
Close an Reader. |
static void |
close(ServerSocket s)
Close a ServerSocket. |
static void |
close(Socket s)
Close a Socket. |
static void |
close(Writer w)
Close a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void close(InputStream s)
InputStream. Logs the exception if there was a
failure.
s - the InputStream to closepublic static void close(OutputStream s)
OutputStream. Logs the exception if there was a
failure.
s - the OutputStream to closepublic static void close(Reader r)
Reader. Logs the exception if there was a
failure.
r - the Reader to closepublic static void close(Writer w)
Writer. Logs the exception if there was a failure.
w - the Writer to closepublic static void close(Socket s)
Socket. Logs the exception if there was a failure.
s - the Socket to closepublic static void close(ServerSocket s)
ServerSocket. Logs the exception if there was a
failure.
s - the ServerSocket to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||