Interface IGenericZipBrowser
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
IGenericJarBrowser
- All Known Implementing Classes:
JarBrowser,JarBrowserApache,JarBrowserOracle,ZipBrowser,ZipBrowserApache,ZipBrowserOracle,ZipBrowserPNF
Generic interface for Zip readers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the archive browser and release its backing resources.Map<String, GenericZipEntry<?>> Get the archive entries indexed by entry name.Get an archive entry by name.getEntryStream(String name) Open a stream for an archive entry.byte[]Read and decompress an archive entry.
-
Method Details
-
close
Close the archive browser and release its backing resources.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- if closing failed
-
getEntries
Map<String,GenericZipEntry<?>> getEntries()Get the archive entries indexed by entry name.- Returns:
- entry map
-
getEntry
Get an archive entry by name.- Parameters:
name- entry name- Returns:
- entry descriptor, or null
-
readEntry
Read and decompress an archive entry.- Parameters:
name- entry name- Returns:
- decompressed entry bytes
- Throws:
IOException- if the entry cannot be read
-
getEntryStream
Open a stream for an archive entry.- Parameters:
name- entry name- Returns:
- stream yielding decompressed entry bytes
- Throws:
IOException- if the entry cannot be opened
-