ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base.exporter.tar
Class TarExporterDelegateBase<T extends TarOutputStreamImpl>

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<InputStream>
      extended by org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase<T>
          extended by 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

Field Summary
 
Fields inherited from class org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase
latch, outputStream
 
Constructor Summary
TarExporterDelegateBase(Archive<?> archive)
          Creates a new exporter delegate for exporting archives
 
Method Summary
protected  void closeEntry(T outputStream)
          Closes the current entry context for the specified OutputStream
protected  Callable<Void> getExportTask(Callable<Void> wrappedTask)
          Returns the task used to run the export operation in another Thread.
protected  void putNextExtry(T 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
createOutputStream, 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

TarExporterDelegateBase

public TarExporterDelegateBase(Archive<?> archive)
Creates a new exporter delegate for exporting archives

Method Detail

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()

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.