changeset 1264:d26c268597ed

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 aece9096d5cd
children 045743e0eb2d
files src/share/classes/java/util/zip/Deflater.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/zip/Deflater.java	Fri May 29 16:27:26 2009 -0700
+++ b/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();