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
 Enumeration getEntries()
          Returns an enumeration with the archive files entries.
 InputStream getInputStream(ArchiveFile.Entry entry)
          Returns an InputStream with the given entries contents.
 

Method Detail

getEntries

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

Throws:
IOException

getInputStream

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

Throws:
IOException


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.