Top Description Constructors Methods
org.apache.tools.ant.types.resources

public abstract Class CompressedResource

extends ContentTransformingResource
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.types.resources.GZipResource, org.apache.tools.ant.types.resources.BZip2Resource
Imports
org.apache.tools.ant.types.ResourceCollection

A compressed resource.

Wraps around another resource, delegates all queries (except getSize) to that other resource but uncompresses/compresses streams on the fly.

Since
Ant 1.7

Constructor Summary

AccessConstructor and Description
protected
CompressedResource()

no arg constructor

protected
CompressedResource(ResourceCollection
the resource to wrap.
other
)

Constructor with another resource to wrap.

Method Summary

Modifier and TypeMethod and Description
protected abstract String

Returns:

the name of the compression method.
getCompressionName
()

Get the name of the compression method used.

public String

Returns:

this Resource formatted as a String.
toString
()

Overrides org.apache.tools.ant.types.Resource.toString.

Get the string representation of this Resource.
Inherited from org.apache.tools.ant.types.resources.ContentTransformingResource:
asgetInputStreamgetOutputStreamgetSizeisAppendSupportedwrapStreamwrapStream

Constructor Detail

CompressedResourceback to summary
protected CompressedResource()

no arg constructor

CompressedResourceback to summary
protected CompressedResource(ResourceCollection other)

Constructor with another resource to wrap.

Parameters
other:ResourceCollection

the resource to wrap.

Method Detail

getCompressionNameback to summary
protected abstract String getCompressionName()

Get the name of the compression method used.

Returns:String

the name of the compression method.

toStringback to summary
public String toString()

Overrides org.apache.tools.ant.types.Resource.toString.

Get the string representation of this Resource.

Returns:String

this Resource formatted as a String.

Annotations
@Override
Since
Ant 1.7