6808625: Incomplete code sample in Deflater javadoc

Added compresser.end() into example

Reviewed-by: martin
This commit is contained in:
Xueming Shen 2009-05-29 16:34:49 -07:00
parent e25b3b4834
commit 01649412e3

View File

@ -49,6 +49,7 @@ package java.util.zip;
* compresser.setInput(input);
* compresser.finish();
* int compressedDataLength = compresser.deflate(output);
* compresser.end();
*
* // Decompress the bytes
* Inflater decompresser = new Inflater();