This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I was writing in GZIP format during which JVM crashed. So the file was corrupted and when I tried to read from the file it said, "Unexpected End of ZLIB ...". Is there any way
1. to recover these types of GZIP files? 2. to handle kill -9 signal using java
kill -9 kills the process without giving it a chance to close gracefully. If you use a less abrupt method to close your application then you can use shutdown hooks.
I don't think the file can be recovered.
BAPPA BAPPA
Greenhorn
Joined: Dec 11, 2006
Posts: 3
posted
0
If i wanna recover any corrupt gzip file what should i do while reading?
"download managers" keep track of the number of bytes sent to the client and then if the connection is reset, they send a HTTP request asking to restart from the point the previous request stopped. I guess you would need to look closer into this and implement it in Java.
Ernest Friedman-Hill
author and iconoclast
Marshal