Re: sun.nio.cs.StreamDecoder readBytes() possible issue

2014-11-04 Thread Vitaly Davidovich
There's more detail in the InputStream.read javadoc, specifically (emphasis mine): This method blocks until input data is available, end of file is detected, > or an exception is thrown. > > If len is zero, then no bytes are read and 0 is returned; *otherwise, > there is an attempt to read at le

sun.nio.cs.StreamDecoder readBytes() possible issue

2014-11-04 Thread Hendrik Dev
Javadoc for java.io.InputStream.read(byte[] b, int off , int len) says: "Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer." So m