InputStream in = server.getInputStream();InputStreamReader r = new InputStreamReader(in);char c[] = new char[64];int num = r.read(c, 0, c.length);