Interface ZipImporter
-
- All Superinterfaces:
Assignable
,StreamImporter<ZipImporter>
- All Known Implementing Classes:
ZipImporterImpl
public interface ZipImporter extends StreamImporter<ZipImporter>
Assignable
type capable of importing ZIP content.- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ZipImporter
importFrom(ZipFile file)
ZipImporter
importZip(ZipFile file)
Deprecated.ZipImporter
importZip(ZipInputStream stream)
Deprecated.UseZipImporter#importFrom(ZipInputStream)
-
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
-
Methods inherited from interface org.jboss.shrinkwrap.api.importer.StreamImporter
importFrom, importFrom, importFrom, importFrom
-
-
-
-
Method Detail
-
importZip
@Deprecated ZipImporter importZip(ZipInputStream stream) throws ArchiveImportException
Deprecated.UseZipImporter#importFrom(ZipInputStream)
Imports providedZipInputStream
as aArchive
. It remains the responsibility of the caller to close theZipInputStream
.- Parameters:
stream
- the stream to import- Returns:
- Archive of the imported Zip
- Throws:
ArchiveImportException
- If an error occurred during the import processIllegalArgumentException
- If no stream is specified
-
importZip
@Deprecated ZipImporter importZip(ZipFile file) throws ArchiveImportException
Deprecated.- Parameters:
file
- the file to import- Returns:
- Archive of the imported Zip
- Throws:
ArchiveImportException
- If an error occurred during the import processIllegalArgumentException
- If no file is specified
-
importFrom
ZipImporter importFrom(ZipFile file) throws ArchiveImportException
- Parameters:
file
- the file to import- Returns:
- Archive of the imported Zip
- Throws:
ArchiveImportException
- If an error occurred during the import processIllegalArgumentException
- If no file is specified
-
-