@@ -887,16 +887,16 @@ public boolean isStrictDecoding() {
887887 * Package private for access from I/O streams.
888888 * </p>
889889 *
890- * @param b byte[] array to extract the buffered data into.
891- * @param bPos position in byte[] array to start extraction at.
892- * @param bAvail amount of bytes we're allowed to extract. We may extract fewer (if fewer are available).
893- * @param context the context to be used.
890+ * @param b byte[] array to extract the buffered data into.
891+ * @param position position in byte[] array to start extraction at.
892+ * @param available amount of bytes we're allowed to extract. We may extract fewer (if fewer are available).
893+ * @param context the context to be used.
894894 * @return The number of bytes successfully extracted into the provided byte[] array.
895895 */
896- int readResults (final byte [] b , final int bPos , final int bAvail , final Context context ) {
896+ int readResults (final byte [] b , final int position , final int available , final Context context ) {
897897 if (hasData (context )) {
898- final int len = Math .min (available (context ), bAvail );
899- System .arraycopy (context .buffer , context .readPos , b , bPos , len );
898+ final int len = Math .min (available (context ), available );
899+ System .arraycopy (context .buffer , context .readPos , b , position , len );
900900 context .readPos += len ;
901901 if (!hasData (context )) {
902902 // All data read.
0 commit comments