changeset 2940:c6fe11c24d43

6808625: Incomplete code sample in Deflater javadoc Summary: added compresser.end() into example Reviewed-by: martin
author sherman
date Fri, 29 May 2009 16:34:49 -0700
parents 958dd4d51d1e
children af92a83128fe
files jdk/src/share/classes/java/util/zip/Deflater.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();