Open GoogleCodeExporter opened 8 years ago
I think StringReader.ready always returns true, since it will never block. The
append method needs to assign length in the buffered read to avoid this problem:
int len = 0;
while (text.length() < max_text_length && reader.ready() && (length =
reader.read(buf)) > -1) {
append(new String(buf, 0, length));
}
Original comment by armin...@gmail.com
on 17 Sep 2012 at 8:03
Original issue reported on code.google.com by
Walter.E...@gmail.com
on 17 Jul 2012 at 2:59