誰か続きやってください。

private String[] connectCommentServer(String address,int port,String thread) {

 try {
 Socket connectSocket = new Socket(address,port);
 //InetSocketAddress socketAddress = new InetSocketAddress(address, port);
 //connectSocket.connect(socketAddress, timeoutSocket);
 System.out.println("接続しました" + connectSocket.getRemoteSocketAddress());

 // 出力ストリームを取得
 PrintWriter out = new PrintWriter(connectSocket.getOutputStream(), true);
 // 入力ストリームを取得
 BufferedReader in = new BufferedReader(new InputStreamReader(connectSocket.getInputStream()));

 out.println("<thread thread=\"" + thread + "\" version=\"20061206\" res_from=\"-1\" />");

 String line;
 String xmlData = "";

 while(null != (line = in.readLine())) {
 System.out.println(in.readLine());
 xmlData += line;
 }

 // 入出力ストリームを閉じる
 out.close();
 in.close();
 // ソケットを閉じる
 connectSocket.close();

 } catch (IOException e) {
 e.printStackTrace();
 }
 return null;
 }

バイトデータだけ受け取れた編 でとりあえずソース公開しました。