org.jboss.shrinkwrap.api.importer
Interface ZipImporter

All Superinterfaces:
Assignable

public interface ZipImporter
extends Assignable

ZipImporter

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 ZipImporter importZip(ZipFile file)
          Imports provided ZipFile as a Archive.
 ZipImporter importZip(ZipInputStream stream)
          Imports provided ZipInputStream as a Archive.
 
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
 

Method Detail

importZip

ZipImporter importZip(ZipInputStream stream)
                      throws ArchiveImportException
Imports provided ZipInputStream as a Archive.

Parameters:
stream - the stream to import
Returns:
Archive of the imported Zip
Throws:
ArchiveImportException - if IOException during import

importZip

ZipImporter importZip(ZipFile file)
                      throws ArchiveImportException
Imports provided ZipFile as a Archive.

Parameters:
file - the file to import
Returns:
Archive of the imported Zip
Throws:
ArchiveImportException - if IOException during import


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.