Tie up some loose ends, implementing methods that are useful but not yet implemented.

This commit is contained in:
Eric Scharff
2007-09-28 11:38:58 -06:00
parent 5691ec87f0
commit 43a2cb7cc5
4 changed files with 20 additions and 8 deletions

View File

@ -15,8 +15,10 @@ public class Inflater {
private int length;
private boolean needDictionary;
private boolean finished;
private final boolean nowrap;
public Inflater(boolean nowrap) {
this.nowrap = nowrap;
peer = make(nowrap);
}
@ -55,8 +57,11 @@ public class Inflater {
}
public void reset() {
// TODO
throw new UnsupportedOperationException();
dispose();
peer = make(nowrap);
input = null;
offset = length = 0;
needDictionary = finished = false;
}
public int inflate(byte[] output) throws DataFormatException {