public class JavaArchive
extends java.lang.Object
Constructor and Description |
---|
JavaArchive(java.io.File zipFile) |
Modifier and Type | Method and Description |
---|---|
protected CollectionUtil |
coll() |
java.util.Optional<org.pfsw.file.FileInfo> |
findFile(java.lang.String filename)
Returns the file info object for the given filename if it can be found in
the archive's table of contents.
|
protected java.util.Optional<org.pfsw.file.FileInfo> |
findFileIn(org.pfsw.file.FileInfo[] fileInfos,
java.lang.String name) |
protected org.pfsw.util.NamedValueList<org.pfsw.file.FileInfo[]> |
getTOC() |
java.io.File |
getZipFile() |
public JavaArchive(java.io.File zipFile) throws java.io.IOException
java.io.IOException
public java.util.Optional<org.pfsw.file.FileInfo> findFile(java.lang.String filename)
filename
- The name of a file with a relative path to the archive's root (must not be null).public java.io.File getZipFile()
protected java.util.Optional<org.pfsw.file.FileInfo> findFileIn(org.pfsw.file.FileInfo[] fileInfos, java.lang.String name)
protected org.pfsw.util.NamedValueList<org.pfsw.file.FileInfo[]> getTOC()
protected CollectionUtil coll()