Package org.codehaus.plexus.archiver
Interface ArchiveFile
- All Known Implementing Classes:
BZip2TarFile,GZipTarFile,SnappyTarFile,TarFile,XZTarFile,ZstdTarFile
public interface ArchiveFile
Interface of a zip, or tar file.
-
Method Summary
Modifier and TypeMethodDescriptionEnumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry>Returns an enumeration with the archive files entries.getInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry) Returns anInputStreamwith the given entries contents.
-
Method Details
-
getEntries
Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry> getEntries() throws IOExceptionReturns an enumeration with the archive files entries. Any element returned by the enumeration is an instance ofArchiveEntry.- Throws:
IOException
-
getInputStream
InputStream getInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry) throws IOException Returns anInputStreamwith the given entries contents. org.apache.commons.compress.archivers.ArchiveEntry- Throws:
IOException
-