Merge pull request #184 from dicej/zip-available

remove redundant decrement in ZipFile.getInputStream inner class
This commit is contained in:
Joshua Warner 2014-02-26 15:55:48 -07:00
commit e837502d43

View File

@ -103,11 +103,9 @@ public class ZipFile {
int remaining = uncompressedSize(window, pointer);
public int read() throws IOException {
int c = super.read();
if (c >= 0) {
-- remaining;
}
return c;
byte[] buffer = new byte[1];
int c = read(buffer);
return (c < 0 ? c : (buffer[0] & 0xFF));
}
public int read(byte[] buffer) throws IOException {