question: 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 ( ) ; }
target:  Reads the output of the reader and delivers it as string.