org.codehaus.plexus.archiver
Interface ArchiveFile

All Known Implementing Classes:
BZip2TarFile, GZipTarFile, TarFile, ZipFile

public interface ArchiveFile

Interface of a zip, or tar file.


Nested Class Summary
static interface ArchiveFile.Entry
          Interfave of a archive file entry.
 
Method Summary
 java.util.Enumeration getEntries()
          Returns an enumeration with the archive files entries.
 java.io.InputStream getInputStream(ArchiveFile.Entry entry)
          Returns an InputStream with the given entries contents.
 

Method Detail

getEntries

java.util.Enumeration getEntries()
                                 throws java.io.IOException
Returns an enumeration with the archive files entries. Any element returned by the enumeration is an instance of ArchiveFile.Entry.

Throws:
java.io.IOException

getInputStream

java.io.InputStream getInputStream(ArchiveFile.Entry entry)
                                   throws java.io.IOException
Returns an InputStream with the given entries contents.

Throws:
java.io.IOException


Copyright © 2001-2010 Codehaus. All Rights Reserved.