1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

no exception in DeflatingDecompressor

This commit is contained in:
Nikolay Pultsin 2012-04-14 00:53:46 +02:00
parent 794fb99640
commit bdc3d0b544

View file

@ -74,12 +74,8 @@ class DeflatingDecompressor extends Decompressor {
fillOutBuffer();
}
if (myOutBufferLength == 0) {
if (myInflatorId != -1) {
throw new ZipException("cannot read from zip");
} else {
len -= toFill;
break;
}
len -= toFill;
break;
}
final int ready = (toFill < myOutBufferLength) ? toFill : myOutBufferLength;
if (b != null) {
@ -107,12 +103,8 @@ class DeflatingDecompressor extends Decompressor {
fillOutBuffer();
}
if (myOutBufferLength == 0) {
if (myInflatorId != -1) {
throw new ZipException("cannot read from zip");
} else {
myAvailable = 0;
return -1;
}
myAvailable = 0;
return -1;
}
--myAvailable;
--myOutBufferLength;