6808625: Incomplete code sample in Deflater javadoc
authorsherman
Fri, 29 May 2009 16:34:49 -0700
changeset 2940 c6fe11c24d43
parent 2939 958dd4d51d1e
child 2941 af92a83128fe
6808625: Incomplete code sample in Deflater javadoc Summary: added compresser.end() into example Reviewed-by: martin
jdk/src/share/classes/java/util/zip/Deflater.java
--- 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();