len parameter of fill is no longer used
@@ -95,7 +95,7 @@ public int read(final byte[] b, final int off, final int len) throws IOException
}
switch (state) {
case NO_BLOCK:
- fill(len);
+ fill();
return read(b, off, len);
case IN_LITERAL:
int litLen = readLiteral(b, off, len);
@@ -115,12 +115,9 @@ public int read(final byte[] b, final int off, final int len) throws IOException
}
/**
- * Try to fill the buffer with enough bytes to satisfy the current
- * read request.
- *
- * @param len the number of uncompressed bytes to read
+ * Try to fill the buffer with the next block of data.
*/
- private void fill(final int len) throws IOException {
+ private void fill() throws IOException {
if (uncompressedBytesRemaining == 0) {
endReached = true;
return;
