|
ShrinkWrap Implementation Base 1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<InputStream>
org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase<ZipOutputStream>
org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate
public class JdkZipExporterDelegate
JDK-based implementation of a ZIP exporter. Cannot handle archives with no content (as there'd be no ZipEntry
s to write to the ZipOutputStream
| Field Summary |
|---|
| Fields inherited from class org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase |
|---|
latch, outputStream |
| Constructor Summary | |
|---|---|
JdkZipExporterDelegate(Archive<?> archive)
Creates a new exporter delegate for exporting archives as ZIP |
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase |
|---|
doExport, getExportedPaths, getResult, processNode |
| Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate |
|---|
export, getArchive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
protected final void closeEntry(ZipOutputStream outputStream)
throws IOException
OutputStream
closeEntry 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()
|
ShrinkWrap Implementation Base 1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||