|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.utils.ClosingUtils
public class ClosingUtils
Utility methods for closing streams, sockets, ...
Constructor Summary | |
---|---|
ClosingUtils()
|
Method Summary | |
---|---|
static void |
close(java.io.Closeable closable)
Closes a closable object (e.g. |
static void |
close(java.net.ServerSocket socket)
Closes a server socket Note: This method does not throw an IOException . |
static void |
close(java.net.Socket socket)
Closes a socket Note: This method does not throw an IOException . |
static void |
close(java.beans.XMLDecoder decoder)
Closes a XMLDecoder . |
static void |
close(java.beans.XMLEncoder encoder)
Closes a XMLEncoder . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClosingUtils()
Method Detail |
---|
public static void close(java.io.Closeable closable)
Closes a closable object (e.g. InputStreams and OutputStreams)
Note: This method does not throw an IOException
closable
- The closable object that should be closed (null
is permitted)public static void close(java.net.ServerSocket socket)
Closes a server socket
Note: This method does not throw an IOException
.
socket
- The server socket that should be closed (null
is permitted)public static void close(java.net.Socket socket)
Closes a socket
Note: This method does not throw an IOException
.
socket
- The socket that should be closed (null
is
permitted)public static void close(java.beans.XMLDecoder decoder)
Closes a XMLDecoder
.
decoder
- The XMLDecoder that should be closed (null
is
permitted)public static void close(java.beans.XMLEncoder encoder)
Closes a XMLEncoder
.
encoder
- The XMLEncoder that should be closed (null
is
permitted)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |