Class CompressedResource

All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<Resource>, java.lang.Iterable<Resource>, ResourceCollection
Direct Known Subclasses:
BZip2Resource, GZipResource, XzResource

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 Details

  • Method Details

    • toString

      public java.lang.String toString()
      Get the string representation of this Resource.
      Overrides:
      toString in class Resource
      Returns:
      this Resource formatted as a String.
      Since:
      Ant 1.7
    • getCompressionName

      protected abstract java.lang.String getCompressionName()
      Get the name of the compression method used.
      Returns:
      the name of the compression method.