String inFileName = testDoc.gz;
File inFile = new File(inFileName);
System.out.println(inFileName);
FileInputStream fileStream = new FileInputStream(inFile);
GZIPInputStream gzipInputStream = new GZIPInputStream(fileStream);
When executing the above code in the the last line returns the error:
java.io.IOException: Not in GZIP format
I have tried it with multiple documents and cannot see the problem.
EDIT: The documents were not created by me, they are downloaded. They are in the .gz format and by multiple documents I mean different .gz files.
You could try mounting the GZIP file with VFS.