6808625: Incomplete code sample in Deflater javadoc
Summary: added compresser.end() into example
Reviewed-by: martin
--- a/jdk/src/share/classes/java/util/zip/Deflater.java Fri May 29 16:27:26 2009 -0700
+++ b/jdk/src/share/classes/java/util/zip/Deflater.java Fri May 29 16:34:49 2009 -0700
@@ -49,6 +49,7 @@
* compresser.setInput(input);
* compresser.finish();
* int compressedDataLength = compresser.deflate(output);
+ * compresser.end();
*
* // Decompress the bytes
* Inflater decompresser = new Inflater();