org.apache.tools.ant.types.resources

Class CompressedResource

public abstract class CompressedResource extends ContentTransformingResource

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
protected CompressedResource()
no arg constructor
protected CompressedResource(ResourceCollection other)
Constructor with another resource to wrap.
Method Summary
protected abstract StringgetCompressionName()
Get the name of the compression method used.
StringtoString()
Get the string representation of this Resource.

Constructor Detail

CompressedResource

protected CompressedResource()
no arg constructor

CompressedResource

protected CompressedResource(ResourceCollection other)
Constructor with another resource to wrap.

Parameters: other the resource to wrap.

Method Detail

getCompressionName

protected abstract String getCompressionName()
Get the name of the compression method used.

Returns: the name of the compression method.

toString

public String toString()
Get the string representation of this Resource.

Returns: this Resource formatted as a String.

Since: Ant 1.7