org.apache.poi.openxml4j.util
Class ZipFileZipEntrySource
- java.lang.Object
-
- org.apache.poi.openxml4j.util.ZipFileZipEntrySource
-
- All Implemented Interfaces:
- ZipEntrySource
public class ZipFileZipEntrySource extends java.lang.Object implements ZipEntrySource
A ZipEntrySource wrapper around a ZipFile. Should be as low in terms of memory as a normal ZipFile implementation is.
-
-
Constructor Summary
Constructors Constructor and Description ZipFileZipEntrySource(java.util.zip.ZipFile zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Indicates we are done with reading, and resources may be freedjava.util.Enumeration<? extends java.util.zip.ZipEntry>getEntries()Returns an Enumeration of all the Entriesjava.io.InputStreamgetInputStream(java.util.zip.ZipEntry entry)Returns an InputStream of the decompressed data that makes up the entry
-
-
-
Constructor Detail
-
ZipFileZipEntrySource
public ZipFileZipEntrySource(java.util.zip.ZipFile zipFile)
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionDescription copied from interface:ZipEntrySourceIndicates we are done with reading, and resources may be freed- Specified by:
closein interfaceZipEntrySource- Throws:
java.io.IOException
-
getEntries
public java.util.Enumeration<? extends java.util.zip.ZipEntry> getEntries()
Description copied from interface:ZipEntrySourceReturns an Enumeration of all the Entries- Specified by:
getEntriesin interfaceZipEntrySource
-
getInputStream
public java.io.InputStream getInputStream(java.util.zip.ZipEntry entry) throws java.io.IOExceptionDescription copied from interface:ZipEntrySourceReturns an InputStream of the decompressed data that makes up the entry- Specified by:
getInputStreamin interfaceZipEntrySource- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG