wood burning stoves
The moose likes I/O and Streams and the fly likes GZIPOutputStream - size of compressed data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "GZIPOutputStream - size of compressed data" Watch "GZIPOutputStream - size of compressed data" New topic

GZIPOutputStream - size of compressed data

ram ragu
Ranch Hand

Joined: Mar 12, 2002
Posts: 57
I compress data using GZIPOutputStream. Is there any way to find out the size of the compressed data?
here is what I do
sb ( StringBuffer )has some data...

GZIPOutputStream gzos =
new GZIPOutputStream(response.getOutputStream());
Kindly let me know.. I need to find out how good the compression is..
I agree. Here's the link: http://aspose.com/file-tools
subject: GZIPOutputStream - size of compressed data
It's not a secret anymore!