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

public Class GUnzip

extends Unpack
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.nio.file.Files, java.util.zip.GZIPInputStream, org.apache.tools.ant.BuildException

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

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.

Implement the gunzipping.
protected String

Returns:

the value ".gz"
getDefaultExtension
()

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

Get the default extension.
protected boolean

Returns:

true if this task 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

GUnzipback to summary
public GUnzip()

Method Detail

extractback to summary
protected void extract()

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

Implement the gunzipping.

Annotations
@Override
getDefaultExtensionback to summary
protected String getDefaultExtension()

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

Get the default extension.

Returns:String

the value ".gz"

Annotations
@Override
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 task supports non file resources.

Annotations
@Override
Since
Ant 1.7