Changes to add end function to Inflater and Deflater per the java spec

This commit is contained in:
Mike Jensen 2011-05-23 11:16:50 -06:00 committed by Joel Dice
parent 92adc83caf
commit 6b4b4b0b8c
2 changed files with 8 additions and 0 deletions

View File

@ -147,6 +147,10 @@ public class Deflater {
boolean finish,
int[] results);
public void end() {
dispose();
}
public void dispose() {
if (peer != 0) {
dispose(peer);

View File

@ -127,6 +127,10 @@ public class Inflater {
byte[] output, int outputOffset, int outputLength,
int[] results);
public void end() {
dispose();
}
public void dispose() {
if (peer != 0) {
dispose(peer);