public static CheckedSocket check(SocketFace socket)
        throws SocketException
    {
        if (socket instanceof CheckedSocket) {
            return (CheckedSocket)socket;
        }
        else {
            return new CheckedSocket(socket);
        }
    }
public static CheckedSocket check ( SocketFace socket ) throws SocketException { if ( socket instanceof CheckedSocket ) { return ( CheckedSocket ) socket ; } else { return new CheckedSocket ( socket ) ; } }
Returns a new CheckedSocket instance only if the given socket isn't
already one.