Package org.codehaus.plexus.archiver
Interface ArchiveFile
-
- All Known Implementing Classes:
BZip2TarFile,GZipTarFile,SnappyTarFile,TarFile,XZTarFile,ZstdTarFile
public interface ArchiveFileInterface of a zip, or tar file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry>getEntries()Returns an enumeration with the archive files entries.InputStreamgetInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry)Returns anInputStreamwith the given entries contents.
-
-
-
Method Detail
-
getEntries
Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry> getEntries() throws IOException
Returns 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
-
-