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

This commit is contained in:
Joel Dice 2011-05-31 14:46:15 -06:00
parent 8e736327d4
commit 4514833700
2 changed files with 8 additions and 0 deletions

View File

@ -138,6 +138,10 @@ public class Deflater {
byte[] output, int outputOffset, int outputLength,
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);