org.jtheque.utils.io
Class SocketUtils

java.lang.Object
  extended by org.jtheque.utils.io.SocketUtils

public final class SocketUtils
extends Object

An utility class for the Socket use.

Author:
Baptiste Wicht

Method Summary
static void close(ServerSocket socket)
          Close the server socket.
static void close(Socket socket)
          Close the socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public static void close(Socket socket)
Close the socket.

Parameters:
socket - The socket set to close.

close

public static void close(ServerSocket socket)
Close the server socket.

Parameters:
socket - The socket to close.


Copyright © 2010 JTheque. All Rights Reserved.