org.jboss.shrinkwrap.api.importer
Interface ZipImporter

All Superinterfaces:
Assignable, StreamImporter<ZipImporter>

public interface ZipImporter
extends StreamImporter<ZipImporter>

Assignable type capable of importing ZIP content.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 ZipImporter importFrom(ZipFile file)
          Imports provided ZipFile as a Archive.
 ZipImporter importZip(ZipFile file)
          Deprecated. Use importFrom(ZipFile)
 ZipImporter importZip(ZipInputStream stream)
          Deprecated. Use ZipImporter#importFrom(ZipInputStream)
 
Methods inherited from interface org.jboss.shrinkwrap.api.importer.StreamImporter
importFrom, importFrom
 
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
 

Method Detail

importZip

@Deprecated
ZipImporter importZip(ZipInputStream stream)
                      throws ArchiveImportException
Deprecated. Use ZipImporter#importFrom(ZipInputStream)

Imports provided ZipInputStream as a Archive. It remains the responsibility of the caller to close the ZipInputStream.

Parameters:
stream - the stream to import
Returns:
Archive of the imported Zip
Throws:
ArchiveImportException - If an error occurred during the import process
IllegalArgumentException - If no stream is specified

importZip

@Deprecated
ZipImporter importZip(ZipFile file)
                      throws ArchiveImportException
Deprecated. Use importFrom(ZipFile)

Imports provided ZipFile as a Archive.

Parameters:
file - the file to import
Returns:
Archive of the imported Zip
Throws:
ArchiveImportException - If an error occurred during the import process
IllegalArgumentException - If no file is specified

importFrom

ZipImporter importFrom(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 an error occurred during the import process
IllegalArgumentException - If no file is specified


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