In this tutorial, we will discuss about how to decompress a GZIP file. The java.util.zip package provide a class named GZIPInputStream. The GZIPInputStream class create a output stream for reading compress data and decompress GZIP.
About GZIPInputStream API:
|void||close()||The close() is use to close all stream.|
|int||read()||The read() method read and decompress GZIP data from associated stream.|
File for Extracting : dd.txt.gz
File Successfylly Extract
Extract File : dd.txt.gz.txt
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.