Monday, April 17, 2006 06:24 PM
when i decompress byte as the following,the Exception is raise.
The data you pretend to be GZIP is not.
At any rate this isn't really surprising if you write methods that act as if everything were OK although Exceptions have occured. By that I mean you assigning the result in the finally clause. I think you shouldn't do that. If any Exception occurs during the decompresson, I think you had better throw it.
Keep in mind that you must close() a GZIPOutputStream (or call finish() on it) in order to have valid data.