org.apache.ant.compress.taskdefs
Class UnpackBase

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Unpack
              extended by org.apache.ant.compress.taskdefs.UnpackBase
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BUnzip2, GUnzip

public abstract class UnpackBase
extends org.apache.tools.ant.taskdefs.Unpack

Expands a resource that has been compressed.


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Unpack
dest, source, srcResource
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
protected UnpackBase(java.lang.String defaultExtension, CompressorStreamFactory factory)
           
 
Method Summary
protected  void extract()
          Implement the gunzipping.
protected  java.lang.String getDefaultExtension()
          Get the default extension.
protected  boolean supportsNonFileResources()
          Yes, we can.
 
Methods inherited from class org.apache.tools.ant.taskdefs.Unpack
addConfigured, execute, setDest, setDest, setSrc, setSrc, setSrcResource
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpackBase

protected UnpackBase(java.lang.String defaultExtension,
                     CompressorStreamFactory factory)
Method Detail

getDefaultExtension

protected final java.lang.String getDefaultExtension()
Get the default extension.

Specified by:
getDefaultExtension in class org.apache.tools.ant.taskdefs.Unpack

extract

protected void extract()
Implement the gunzipping.

Specified by:
extract in class org.apache.tools.ant.taskdefs.Unpack

supportsNonFileResources

protected final boolean supportsNonFileResources()
Yes, we can.

Overrides:
supportsNonFileResources in class org.apache.tools.ant.taskdefs.Unpack