org.apache.tools.ant.types.resources
public abstract class CompressedResource extends ContentTransformingResource
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 String | getCompressionName()
Get the name of the compression method used. |
| String | toString()
Get the string representation of this Resource. |
Parameters: other the resource to wrap.
Returns: the name of the compression method.
Returns: this Resource formatted as a String.
Since: Ant 1.7