View Javadoc
1   package org.codehaus.plexus.archiver;
2   
3   import java.io.IOException;
4   import java.io.InputStream;
5   import java.util.Enumeration;
6   
7   /**
8    * Interface of a zip, or tar file.
9    */
10  public interface ArchiveFile {
11  
12      /**
13       * Returns an enumeration with the archive files entries.
14       * Any element returned by the enumeration is an instance
15       * of {@link org.apache.commons.compress.archivers.ArchiveEntry}.
16       */
17      Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry> getEntries() throws IOException;
18  
19      /**
20       * Returns an {@link InputStream} with the given entries contents.
21       * org.apache.commons.compress.archivers.ArchiveEntry
22       */
23      InputStream getInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry) throws IOException;
24  }