Class ZipBrowserPNF
java.lang.Object
com.pnfsoftware.jeb.util.encoding.zip.ZipBrowserPNF
- All Implemented Interfaces:
IGenericZipBrowser,AutoCloseable
An implementation of a Zip browser backed by JEB's custom
fail-safe Zip
reader.-
Constructor Summary
ConstructorsConstructorDescriptionZipBrowserPNF(File f, int treatUnsupportedCompressionAsMethod, boolean ignoreEncryption) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Map<String,GenericZipEntry<?>> getEntryStream(String name) byte[]
-
Constructor Details
-
ZipBrowserPNF
public ZipBrowserPNF(File f, int treatUnsupportedCompressionAsMethod, boolean ignoreEncryption) throws IOException - Parameters:
f-treatUnsupportedCompressionAsMethod- -1 to fail if unsupported, else a compression method id (0:treat as STORED; 8: treat as DEFLATED, etc.)ignoreEncryption-- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIGenericZipBrowser- Throws:
IOException
-
getEntries
- Specified by:
getEntriesin interfaceIGenericZipBrowser
-
getEntry
- Specified by:
getEntryin interfaceIGenericZipBrowser
-
readEntry
- Specified by:
readEntryin interfaceIGenericZipBrowser- Throws:
IOException
-
getEntryStream
- Specified by:
getEntryStreamin interfaceIGenericZipBrowser- Throws:
IOException
-