Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class BUnzip2

extends Unpack
Class Inheritance
Imports
java.io.BufferedInputStream, .IOException, .InputStream, .OutputStream, java.nio.file.Files, org.apache.tools.ant.BuildException, org.apache.tools.ant.util.FileUtils, org.apache.tools.bzip2.CBZip2InputStream

Expands a file that has been compressed with the BZIP2 algorithm. Normally used to compress non-compressed archives such as TAR files.
Since
Ant 1.5

Field Summary

Modifier and TypeField and Description
private static final int
private static final String
Inherited from org.apache.tools.ant.taskdefs.Unpack:
destsourcesrcResource

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
extract()

Implements abstract org.apache.tools.ant.taskdefs.Unpack.extract.

Do the unbzipping.
protected String

Returns:

the string ".bz2"
getDefaultExtension
()

Implements abstract org.apache.tools.ant.taskdefs.Unpack.getDefaultExtension.

Get the default extension.
protected boolean

Returns:

true if this class supports non file resources.
supportsNonFileResources
()

Overrides org.apache.tools.ant.taskdefs.Unpack.supportsNonFileResources.

Whether this task can deal with non-file resources.
Inherited from org.apache.tools.ant.taskdefs.Unpack:
addConfiguredexecutesetDestsetDestsetSrcsetSrcsetSrcResource

Field Detail

BUFFER_SIZEback to summary
private static final int BUFFER_SIZE
DEFAULT_EXTENSIONback to summary
private static final String DEFAULT_EXTENSION

Constructor Detail

BUnzip2back to summary
public BUnzip2()

Method Detail

extractback to summary
protected void extract()

Implements abstract org.apache.tools.ant.taskdefs.Unpack.extract.

Do the unbzipping.

getDefaultExtensionback to summary
protected String getDefaultExtension()

Implements abstract org.apache.tools.ant.taskdefs.Unpack.getDefaultExtension.

Get the default extension.

Returns:String

the string ".bz2"

supportsNonFileResourcesback to summary
protected boolean supportsNonFileResources()

Overrides org.apache.tools.ant.taskdefs.Unpack.supportsNonFileResources.

Whether this task can deal with non-file resources.

This implementation returns true only if this task is <gunzip>. Any subclass of this class that also wants to support non-file resources needs to override this method. We need to do so for backwards compatibility reasons since we can't expect subclasses to support resources.

Returns:boolean

true if this class supports non file resources.

Since
Ant 1.7