ShrinkWrap Implementation Base 1.0.0

org.jboss.shrinkwrap.impl.base.importer.zip
Class ZipImporterImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
      extended by org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl
All Implemented Interfaces:
Assignable, StreamImporter<ZipImporter>, ZipImporter

public class ZipImporterImpl
extends AssignableBase<Archive<?>>
implements ZipImporter

Used to import existing Zip files/streams into the given Archive

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
ZipImporterImpl(Archive<?> archive)
           
 
Method Summary
 ZipImporter importFrom(File file)
          
 ZipImporter importFrom(InputStream stream)
          
 ZipImporter importFrom(ZipFile file)
          
 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

ZipImporterImpl

public ZipImporterImpl(Archive<?> archive)
Method Detail

importZip

@Deprecated
public ZipImporter importZip(ZipInputStream stream)
Deprecated. 

Specified by:
importZip in interface ZipImporter
See Also:
ZipImporter.importZip(java.util.zip.ZipInputStream)

importZip

@Deprecated
public ZipImporter importZip(ZipFile file)
Deprecated. 

Specified by:
importZip in interface ZipImporter
See Also:
ZipImporter.importZip(java.util.zip.ZipFile)

importFrom

public ZipImporter importFrom(InputStream stream)
                       throws ArchiveImportException

Specified by:
importFrom in interface StreamImporter<ZipImporter>
Throws:
ArchiveImportException
See Also:
StreamImporter.importFrom(java.io.InputStream)

importFrom

public ZipImporter importFrom(File file)
                       throws ArchiveImportException

Specified by:
importFrom in interface StreamImporter<ZipImporter>
Throws:
ArchiveImportException
See Also:
StreamImporter.importFrom(java.io.File)

importFrom

public ZipImporter importFrom(ZipFile file)
                       throws ArchiveImportException

Specified by:
importFrom in interface ZipImporter
Throws:
ArchiveImportException
See Also:
StreamImporter.importFrom(java.io.File)

ShrinkWrap Implementation Base 1.0.0

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.