code: public void connect() throws Exception {
          // connection must be null if the connection failed
          URLConnection newConnection = location.openConnection();
          newConnection.connect();
          connection = newConnection;
          
          InputStream bytesIn = connection.getInputStream();
          CharsetDecoder decoder = UTF_8.newDecoder();
          textIn = new BufferedReader(new InputStreamReader(bytesIn, decoder));
      }
docs: Connects to the k3po server.
  @throws Exception if fails to connect.