ZipInputStream.java (fill): New method.
* java/util/zip/ZipInputStream.java (fill): New method. (compressed_len): New instance variable. (getNextStream): Set it. (read): Reset inflater on EOF. Only read via `super' if entry is deflated. (skip): Only skip via `super' if entry is deflated. * java/util/zip/Deflater.java (last_input_count): Removed. * java/util/zip/natDeflater.cc (deflate): Return 0 if input array is length 0. (needsInput): Don't use last_input_count. (setInput): Don't set last_input_count. * java/util/zip/natInflater.cc (getRemaining): Return correct result. (inflate): Return 0 if input array is length 0. (setInput): Don't set last_input_count. * java/util/zip/Inflater.java (last_input_count): Removed. From-SVN: r27105
This commit is contained in:
parent
5256aa37b4
commit
93d627acaa
6 changed files with 68 additions and 18 deletions
|
@ -95,7 +95,4 @@ public class Inflater
|
|||
|
||||
// True if dictionary needed.
|
||||
private boolean dict_needed;
|
||||
|
||||
// Total number of bytes made available at last setInput.
|
||||
private int last_input_count;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue