1 package net.sourceforge.phpeclipse.phpunit;
3 import java.io.BufferedReader;
4 import java.io.IOException;
5 import java.io.InputStreamReader;
6 import java.net.Socket;
8 public class ReportListener extends Thread {
12 public ReportListener(Socket serviceSocket) {
14 this.serviceSocket = serviceSocket;
20 InputStreamReader reader;
23 reader = new InputStreamReader(serviceSocket.getInputStream());
25 BufferedReader in = new BufferedReader(reader);
28 // keep listening until the
29 while ( (report = in.readLine()) != null &&
30 (report != "end_all_tests") ) {
32 System.out.println("received something...");
33 //handleReport(report);
34 System.out.println(report);
37 //reportArea.append("Finished!");
38 System.out.println("Finished");
39 serviceSocket.close();
41 } catch (IOException e) {
42 // TODO Auto-generated catch block