public void close() throws IOException {
        if (sslHelper.isSocketAvailable()) {
            try {
                if (in != null)
                    in.close();
                if (out != null)
                    out.close();
            } finally {
                sslHelper.closeSocket();
            }
        }
    }
public void close ( ) throws IOException { if ( sslHelper . isSocketAvailable ( ) ) { try { if ( in != null ) in . close ( ) ; if ( out != null ) out . close ( ) ; } finally { sslHelper . closeSocket ( ) ; } } }
Closes the socket.

@throws IOException