|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl
public class ZipImporterImpl
Used to import existing Zip files/streams into the given Archive
| Constructor Summary | |
|---|---|
ZipImporterImpl(Archive<?> archive)
|
|
| Method Summary | |
|---|---|
ZipImporter |
importFrom(File file)
Imports provided File as a Archive. |
ZipImporter |
importFrom(InputStream stream)
Imports provided stream as a Archive. |
ZipImporter |
importFrom(ZipFile file)
Imports provided ZipFile as a Archive. |
ZipImporter |
importZip(ZipFile file)
Deprecated. |
ZipImporter |
importZip(ZipInputStream stream)
Deprecated. |
| Methods inherited from class org.jboss.shrinkwrap.impl.base.AssignableBase |
|---|
as, getArchive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.shrinkwrap.api.Assignable |
|---|
as |
| Constructor Detail |
|---|
public ZipImporterImpl(Archive<?> archive)
| Method Detail |
|---|
@Deprecated public ZipImporter importZip(ZipInputStream stream)
ZipInputStream as a Archive. It remains
the responsibility of the caller to close the ZipInputStream.
importZip in interface ZipImporterstream - the stream to import
ZipImporter.importZip(java.util.zip.ZipInputStream)@Deprecated public ZipImporter importZip(ZipFile file)
ZipFile as a Archive.
importZip in interface ZipImporterfile - the file to import
ZipImporter.importZip(java.util.zip.ZipFile)
public ZipImporter importFrom(InputStream stream)
throws ArchiveImportException
Archive. It remains
the responsibility of the caller to close the stream.
importFrom in interface StreamImporter<ZipImporter>stream - the stream to import; should be a raw type, not wrapped
in any implementation-specific encoding (ie. FileInputStream is appropriate,
but ZipInputStream or GZIPInputStream is not).
ArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.InputStream)
public ZipImporter importFrom(File file)
throws ArchiveImportException
Archive.
importFrom in interface StreamImporter<ZipImporter>file - the file to import
ArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.File)
public ZipImporter importFrom(ZipFile file)
throws ArchiveImportException
ZipFile as a Archive.
importFrom in interface ZipImporterfile - the file to import
ArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.File)
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||