public static String readOutput(BufferedReader in) throws IOException {
  StringBuffer output=new StringBuffer();
  String line=null;
  while ((line=in.readLine()) != null) {
    output.append(line);
    output.append(Tools.getLineSeparator());
  }
  return output.toString();
}

public static String readOutput ( BufferedReader in ) throws IOException { StringBuffer output = new StringBuffer ( ) ; String line = null ; while ( ( line = in . readLine ( ) ) != null ) { output . append ( line ) ; output . append ( Tools . getLineSeparator ( ) ) ; } return output . toString ( ) ; }
reads the output of the reader and delivers it as string .
