Package org.codehaus.plexus.archiver
Interface ArchiveFile
-
- All Known Implementing Classes:
BZip2TarFile,GZipTarFile,TarFile,XZTarFile
public interface ArchiveFileInterface 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.InputStreamgetInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry)Returns anInputStreamwith the given entries contents.
-
-
-
Method Detail
-
getEntries
java.util.Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry> getEntries() throws java.io.IOExceptionReturns 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.IOExceptionReturns anInputStreamwith the given entries contents. org.apache.commons.compress.archivers.ArchiveEntry- Throws:
java.io.IOException
-
-