|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource
public class ZipInputStreamZipEntrySource
Provides a way to get at all the ZipEntries
from a ZipInputStream, as many times as required.
Allows a ZipInputStream to be treated much like
a ZipFile, for a price in terms of memory.
Be sure to call close()
as soon as you're
done, to free up that memory!
Nested Class Summary | |
---|---|
static class |
ZipInputStreamZipEntrySource.FakeZipEntry
So we can close the real zip entry and still effectively work with it. |
Constructor Summary | |
---|---|
ZipInputStreamZipEntrySource(java.util.zip.ZipInputStream inp)
Reads all the entries from the ZipInputStream into memory, and closes the source stream. |
Method Summary | |
---|---|
void |
close()
Indicates we are done with reading, and resources may be freed |
java.util.Enumeration<? extends java.util.zip.ZipEntry> |
getEntries()
Returns an Enumeration of all the Entries |
java.io.InputStream |
getInputStream(java.util.zip.ZipEntry zipEntry)
Returns an InputStream of the decompressed data that makes up the entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipInputStreamZipEntrySource(java.util.zip.ZipInputStream inp) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.util.Enumeration<? extends java.util.zip.ZipEntry> getEntries()
ZipEntrySource
getEntries
in interface ZipEntrySource
public java.io.InputStream getInputStream(java.util.zip.ZipEntry zipEntry)
ZipEntrySource
getInputStream
in interface ZipEntrySource
public void close()
ZipEntrySource
close
in interface ZipEntrySource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |