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:
Tom Tromey 1999-05-22 18:08:46 +00:00 committed by Tom Tromey
parent 5256aa37b4
commit 93d627acaa
6 changed files with 68 additions and 18 deletions

View file

@ -124,9 +124,6 @@ public class Deflater
// True if finished.
private boolean is_finished;
// Total number of bytes made available at last setInput.
private int last_input_count;
// `Flush' flag to pass to next call to deflate.
private int flush_flag;
}