org.jboss.shrinkwrap.api.export
Class ZipExporter

java.lang.Object
  extended by org.jboss.shrinkwrap.api.export.ZipExporter

public abstract class ZipExporter
extends java.lang.Object

ZipExporter Exporter used to export an Archive as a Zip format.


Constructor Summary
ZipExporter()
           
 
Method Summary
protected abstract  java.io.InputStream doExportZip(Archive<?> archive)
          Template export method for concrete implementations
static java.io.InputStream exportZip(Archive<?> archive)
          Exports provided archive as a Zip archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipExporter

public ZipExporter()
Method Detail

exportZip

public static java.io.InputStream exportZip(Archive<?> archive)
Exports provided archive as a Zip archive.

Parameters:
archive -
Returns:
InputStram for exported Zip
Throws:
java.lang.IllegalArgumentException - if the archive is not valid
ArchiveExportException - if the export process fails

doExportZip

protected abstract java.io.InputStream doExportZip(Archive<?> archive)
Template export method for concrete implementations

Parameters:
archive -
Returns:
InputStream for exported Zip