public class JdkZipExporterDelegate extends StreamExporterDelegateBase<ZipOutputStream>
ZipEntry
s to write to the ZipOutputStream
latch, outputStream
Constructor and Description |
---|
JdkZipExporterDelegate(Archive<?> archive)
Creates a new exporter delegate for exporting archives as ZIP
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeEntry(ZipOutputStream outputStream)
Closes the current entry context for the specified
OutputStream |
protected ZipOutputStream |
createOutputStream(OutputStream out)
Creates the real
OutputStream to which we'll write, wrapping the provided target. |
protected Callable<Void> |
getExportTask(Callable<Void> wrappedTask)
Returns the task used to run the export operation in another Thread.
|
protected void |
putNextExtry(ZipOutputStream outputStream,
String context)
Writes the next entry (demarcates a new file/folder is to be written)
|
doExport, getExportedPaths, getResult, processNode
export, getArchive
public JdkZipExporterDelegate(Archive<?> archive) throws IllegalArgumentException
IllegalArgumentException
- If the archive has no Asset
s; JDK ZIP handling cannot support writing out to a
ZipOutputStream
with no ZipEntry
s.protected final void closeEntry(ZipOutputStream outputStream) throws IOException
OutputStream
closeEntry
in class StreamExporterDelegateBase<ZipOutputStream>
IOException
StreamExporterDelegateBase.closeEntry(java.io.OutputStream)
protected final ZipOutputStream createOutputStream(OutputStream out) throws IOException
OutputStream
to which we'll write, wrapping the provided target.createOutputStream
in class StreamExporterDelegateBase<ZipOutputStream>
IOException
- If an error occurred in creating the streamStreamExporterDelegateBase.createOutputStream(java.io.OutputStream)
protected final void putNextExtry(ZipOutputStream outputStream, String context) throws IOException
putNextExtry
in class StreamExporterDelegateBase<ZipOutputStream>
IOException
- If an error occurred writing the entryStreamExporterDelegateBase.putNextExtry(java.io.OutputStream,
java.lang.String)
protected Callable<Void> getExportTask(Callable<Void> wrappedTask)
getExportTask
in class StreamExporterDelegateBase<ZipOutputStream>
wrappedTask
- The export task to be wrapped in more specific handling logicorg.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase#getExportTask()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.