org.jboss.shrinkwrap.impl.base.exporter.tar
Class TarExporterDelegateBase<T extends TarOutputStreamImpl>
java.lang.Object
org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<InputStream>
org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase<T>
org.jboss.shrinkwrap.impl.base.exporter.tar.TarExporterDelegateBase<T>
- Direct Known Subclasses:
- TarExporterDelegate, TarGzExporterDelegate
public abstract class TarExporterDelegateBase<T extends TarOutputStreamImpl>
- extends StreamExporterDelegateBase<T>
Base implementation for exporter delegates of the TAR format
- Version:
- $Revision: $
- Author:
- ALR
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TarExporterDelegateBase
public TarExporterDelegateBase(Archive<?> archive)
- Creates a new exporter delegate for exporting archives
closeEntry
protected final void closeEntry(T outputStream)
throws IOException
- Closes the current entry context for the specified
OutputStream
- Specified by:
closeEntry in class StreamExporterDelegateBase<T extends TarOutputStreamImpl>
- Throws:
IOException- See Also:
StreamExporterDelegateBase.closeEntry(java.io.OutputStream)
putNextExtry
protected final void putNextExtry(T outputStream,
String context)
throws IOException
- Writes the next entry (demarcates a new file/folder is to be written)
- Specified by:
putNextExtry in class StreamExporterDelegateBase<T extends TarOutputStreamImpl>
- Throws:
IOException - If an error occurred writing the entry- See Also:
StreamExporterDelegateBase.putNextExtry(java.io.OutputStream,
java.lang.String)
getExportTask
protected Callable<Void> getExportTask(Callable<Void> wrappedTask)
- Returns the task used to run the export operation in another Thread. Exposed such that the specified task (which
handles the export) may be wrapped in some error handling logic specific to the export process.
- Specified by:
getExportTask in class StreamExporterDelegateBase<T extends TarOutputStreamImpl>
- Parameters:
wrappedTask - The export task to be wrapped in more specific handling logic- See Also:
org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase#getExportTask()
Copyright © 2011 JBoss by Red Hat. All Rights Reserved.