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