public String readAll ( ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; String line ; while ( ( line = readLine ( ) ) != null ) { sb . append ( line ) ; } return sb . toString ( ) ; }
Reads all lines and return as a String .