Interface ZipArchive

All Known Subinterfaces:
ZipArchiveCache
All Known Implementing Classes:
ZipFileProcessor

public interface ZipArchive
An interface for accessing the contents of a Zip archive.
  • Method Details

    • getPath

      Path getPath()
      Get the path to the archive
      Returns:
      the Path to the archive
    • getFirstEntry

      ZipEntry getFirstEntry()
      Returns the first physical ZipEntry in the archive.
      Returns:
      the first physical ZipEntry in the archive
    • getZipEntries

      List<ZipEntry> getZipEntries()
      Get a List of all of the zip entries in the archive
      Returns:
      an ordered List of all of the zip entries in the archive
    • getZipEntry

      ZipEntry getZipEntry(String entryName)
      Retrieve a ZipEntry by entry name, equivalent to the path.
      Parameters:
      entryName - the name of the ZipEntry to retrieve
      Returns:
      the ZipEntry with the given entryName, or null if no match
    • size

      int size()
      Get the count of entries in the archive
      Returns:
      int number of ZipEntries in the archive