class Connection {

  public void close() throws ConnectionException {
    if (isConnected()) {
      try {
        socket.close();
      } catch (IOException ex) {
        throw new ConnectionException(ex);
      }
    }
  }

  public  Connection();
  public  Connection(final String host);
  public  Connection(final String host, final int port);
  public  Connection(final String host, final int port, final int timeout, final int socketTimeout);

}