Package org.openpreservation.format.zip
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 Summary
Modifier and TypeMethodDescriptionReturns the first physicalZipEntry
in the archive.getPath()
Get the path to the archiveGet aList
of all of the zip entries in the archivegetZipEntry
(String entryName) Retrieve aZipEntry
by entry name, equivalent to the path.int
size()
Get the count of entries in the archive
-
Method Details
-
getPath
Path getPath()Get the path to the archive- Returns:
- the
Path
to the archive
-
getFirstEntry
ZipEntry getFirstEntry()Returns the first physicalZipEntry
in the archive.- Returns:
- the first physical
ZipEntry
in the archive
-
getZipEntries
Get aList
of all of the zip entries in the archive- Returns:
- an ordered
List
of all of the zip entries in the archive
-
getZipEntry
Retrieve aZipEntry
by entry name, equivalent to the path.- Parameters:
entryName
- the name of theZipEntry
to retrieve- Returns:
- the
ZipEntry
with the givenentryName
, ornull
if no match
-
size
int size()Get the count of entries in the archive- Returns:
int
number ofZipEntries
in the archive
-