Class ZipExporterDelegate
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<java.io.InputStream>
-
- org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterDelegate
-
class ZipExporterDelegate extends AbstractExporterDelegate<java.io.InputStream>
Implementation of a ZIP exporter. Cannot handle archives with no content (as there'd be noZipEntry
s to write to theZipOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
compressed
-
Constructor Summary
Constructors Modifier Constructor Description protected
ZipExporterDelegate(Archive<?> archive)
protected
ZipExporterDelegate(Archive<?> archive, boolean compressed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.InputStream
getResult()
Return the results of the export.protected void
processNode(ArchivePath path, Node node)
Template method for processing a single node.-
Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate
doExport, export, getArchive
-
-
-
-
Method Detail
-
processNode
protected void processNode(ArchivePath path, Node node)
Description copied from class:AbstractExporterDelegate
Template method for processing a single node.- Specified by:
processNode
in classAbstractExporterDelegate<java.io.InputStream>
-
getResult
protected java.io.InputStream getResult()
Description copied from class:AbstractExporterDelegate
Return the results of the export. Should process any tasks required to finalize the export.- Specified by:
getResult
in classAbstractExporterDelegate<java.io.InputStream>
- Returns:
-
-