I've spent many hours trying to find a solution to this problem, but all in vain.
Here's the deal:
I have a ZipInputStream, which I've even managed to get a ZipEntry from.
I can get the size or the name of this entry. The entry itself is an XML file which I need to get access to,
but how can I do that without a ZipFile instance?
Here's my code so far:
I need to extract the entry as InputStream or java.io.File to pass it to a DocumentBuilder and parse the XML.ByteArrayInputStream bais = new ByteArrayInputStream(zipBytes); ZipInputStream zis = new ZipInputStream(bais); ZipEntry ze = zis.getNextEntry();