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:
| Return Type | Method | Description |
| void | close() | The close() is use to close all stream. |
| int | read() | The read() method read and decompress GZIP data from associated stream. |
import java.util.zip.*; |
| C:\>java UnGzip File for Extracting : dd.txt.gz File Successfylly Extract Extract File : dd.txt.gz.txt C:\Work\Bharat\Roseindi_Tutorial\Zip_api\GzipUncopresser> |
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.