The implementation of StreamUtils.readString reads the contents of a Reader
object into a String. The assumption is made that the single invoke of
Reader.read always fills the entire buffer. Some readers do not support large
(>8kb) buffers, resulting in incorrect results with 0X00 characters after the
first 8192 characters. The solution is to respect the Reader.read() result and
to keep reading until it returns -1.
Original issue reported on code.google.com by p.kruijsen on 30 Mar 2011 at 11:32
The text was updated successfully, but these errors were encountered: