BufferedReader buf = new BufferedReader(new InputStreamReader(is));
StringBuilder str = new StringBuilder();
String line;
do {
line = buf.readLine();
<BUG>str.append(line + "\n");
</BUG>
} while (line != null);
return str.toString();
} catch (Exception e) {

BufferedReader buf = new BufferedReader(new InputStreamReader(is));
StringBuilder str = new StringBuilder();
String line;
do {
line = buf.readLine();
str.append(line).append("\n");
} while (line != null);
return str.toString();
} catch (Exception e) {
