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 ) ) ; }
Connects to the k3po server .