Get Entry from GZIPInputStream using Java

Viewed 917

Is there a way to get entry from GZIPInputStream ? For .zip files I am using the following:

ZipInputStream zis = new ZipInputStream((InputStream) inputStream);
ZipEntry entry = zis.getNextEntry();

But i want to exclude the entry inside file with .xml.gz extension. Or is there a way to extract the data inside .xml.gz file as String ?

1 Answers
Related