ppkarwasz commented on code in PR #748:
URL: https://github.com/apache/commons-io/pull/748#discussion_r2094126164


##########
src/main/java/org/apache/commons/io/input/QueueInputStream.java:
##########
@@ -224,4 +224,49 @@ public int read() {
         }
     }
 
+    /**
+     * Reads up to {@code length} bytes of data from the input stream into
+     * an array of bytes.  The first byte is read while honoring the timeout; 
the rest are read while <i>not</i> honoring
+     * the timeout. The number of bytes actually read is returned as an 
integer.
+     *
+     * @param b     the buffer into which the data is read.
+     * @param offset   the start offset in array {@code b}
+     *                   at which the data is written.
+     * @param length   the maximum number of bytes to read.
+     * @return     the total number of bytes read into the buffer, or
+     *             {@code -1} if there is no more data because the end of
+     *             the stream has been reached.
+     * @throws IllegalStateException if thread is interrupted while waiting 
for the first byte.

Review Comment:
   Fixed in e91989163f7a5e856ae1b168b00c14ef49b8d8fe



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to