}
@Override
- protected int inflate(final int pos, final Inflater inf)
+ protected int setInput(final int pos, final Inflater inf)
throws DataFormatException {
int n = array.length - pos;
inf.setInput(array, pos, n);
}
@Override
- protected int inflate(final int pos, final Inflater inf)
+ protected int setInput(final int pos, final Inflater inf)
throws DataFormatException {
final ByteBuffer s = buffer.slice();
s.position(pos);
*/
protected abstract int copy(int pos, byte[] dstbuf, int dstoff, int cnt);
- final int inflate(long pos, Inflater inf) throws DataFormatException {
- return inflate((int) (pos - start), inf);
+ final int setInput(long pos, Inflater inf) throws DataFormatException {
+ return setInput((int) (pos - start), inf);
}
- protected abstract int inflate(int pos, Inflater inf)
+ protected abstract int setInput(int pos, Inflater inf)
throws DataFormatException;
}
int dstoff) throws IOException, DataFormatException {
prepareInflater();
pin(pack, position);
- position += window.inflate(position, inf);
+ position += window.setInput(position, inf);
do {
int n = inf.inflate(dstbuf, dstoff, dstbuf.length - dstoff);
if (n == 0) {
if (inf.needsInput()) {
pin(pack, position);
- position += window.inflate(position, inf);
+ position += window.setInput(position, inf);
} else if (inf.finished())
return dstoff;
else