Let's say you have a Zip File and you want to read it. You just take the ZipFile and .getInputStream(ZipEntry). Well, let's say the entry you want to read is a zip file, itself. Well, you: ZipInputStream inputStream = new ZipInputStream((zipFileHere).getInputStream(ZipEntry)). And then you read from there. Now, let's say you have a triple nested zip file. That is to say, a zip file...inside a zip file... inside a zip fie. How would you read from that? ZipInputStream doesn't have a ".getInputStream(ZipEntry e)" method...
Joined: Jun 16, 2011
Found out the answer.
Wrap a ZipInputStream around a ZipInputStream
ZipInputStream firstLevel = new ZipInputStream(ZipFile.getInputStream(ZipEntry));
ZipInputStream secondLevel = new ZipInputStream(firstLevel);