public class JdkZipExporterDelegate extends StreamExporterDelegateBase<ZipOutputStream>
ZipEntry
s to write to the ZipOutputStreamlatch, 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, processNodeexport, getArchivepublic JdkZipExporterDelegate(Archive<?> archive) throws IllegalArgumentException
IllegalArgumentException - If the archive has no Assets; JDK ZIP handling cannot support writing out to a
ZipOutputStream with no ZipEntrys.protected final void closeEntry(ZipOutputStream outputStream) throws IOException
OutputStreamcloseEntry in class StreamExporterDelegateBase<ZipOutputStream>IOExceptionStreamExporterDelegateBase.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 © 2012 JBoss by Red Hat. All Rights Reserved.