public class ArchiveTOC
extends java.lang.Object
Constructor and Description |
---|
ArchiveTOC(java.io.File archive)
Initialize the new instance with the archive identified by the given file.
|
ArchiveTOC(java.lang.String filename)
Initialize the new instance with the archive named by the given filename.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(FileInfo info) |
TableOfContents |
asTableOfContents()
Returns the information about the files of this archive as a TableOfContents
object.
|
protected NamedValueList<java.util.List<FileInfo>> |
directories() |
protected void |
directories(NamedValueList<java.util.List<FileInfo>> newValue) |
protected java.lang.String |
getZipFilename() |
protected void |
init(java.lang.String filename) |
protected boolean |
isDirectory(java.util.zip.ZipEntry entry) |
protected void |
readTOC(java.util.zip.ZipFile zipFile) |
protected void |
setZipFilename(java.lang.String newValue) |
NamedValueList<FileInfo[]> |
toc()
Returns a named value list, where the names are directory names and
the values are FileInfo[] objects containing all files inside the
directories.
|
public ArchiveTOC(java.lang.String filename) throws java.io.IOException
java.io.IOException
public ArchiveTOC(java.io.File archive) throws java.io.IOException
java.io.IOException
public NamedValueList<FileInfo[]> toc()
public TableOfContents asTableOfContents()
protected void init(java.lang.String filename) throws java.io.IOException
java.io.IOException
protected void readTOC(java.util.zip.ZipFile zipFile)
protected void add(FileInfo info)
protected boolean isDirectory(java.util.zip.ZipEntry entry)
protected NamedValueList<java.util.List<FileInfo>> directories()
protected void directories(NamedValueList<java.util.List<FileInfo>> newValue)
protected java.lang.String getZipFilename()
protected void setZipFilename(java.lang.String newValue)