public boolean StreamRequest(User[] userList) throws IOException{ // First initialize the connection between sockets : try { this.initialize(); } catch (IOException e) { System.out.println("Error in initializing I/O"); } //String msg = this.in.readLine(); // System.out.println(msg); try{ StringBuilder output = new StringBuilder(""); String line = ""; while (line = in.readLine() != null) { output.append(line); } System.out.println(output.toString()); //String msg = new String(buffer, 0, charsRead); //System.out.println("Received:\n" + msg); }catch(Exception e){System.out.println(e);}