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:
parent
794fb99640
commit
bdc3d0b544
1 changed files with 4 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue