From 4514833700a329e8cb8da01e60c471f8fcfbdf41 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 31 May 2011 14:46:15 -0600 Subject: [PATCH] Changes to add end function to Inflater and Deflater per the java spec --- classpath/java/util/zip/Deflater.java | 4 ++++ classpath/java/util/zip/Inflater.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/classpath/java/util/zip/Deflater.java b/classpath/java/util/zip/Deflater.java index d7bfc83b88..a5d4511683 100644 --- a/classpath/java/util/zip/Deflater.java +++ b/classpath/java/util/zip/Deflater.java @@ -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); diff --git a/classpath/java/util/zip/Inflater.java b/classpath/java/util/zip/Inflater.java index 6e04b87b92..9f44415194 100644 --- a/classpath/java/util/zip/Inflater.java +++ b/classpath/java/util/zip/Inflater.java @@ -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);