Class CompressedResource
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.types.DataType
- 
- org.apache.tools.ant.types.Resource
- 
- org.apache.tools.ant.types.resources.ResourceDecorator
- 
- org.apache.tools.ant.types.resources.ContentTransformingResource
- 
- org.apache.tools.ant.types.resources.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
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.types.ResourceMAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedCompressedResource()no arg constructorprotectedCompressedResource(ResourceCollection other)Constructor with another resource to wrap.
 - 
Method SummaryModifier and Type Method Description protected abstract java.lang.StringgetCompressionName()Get the name of the compression method used.java.lang.StringtoString()Get the string representation of this Resource.- 
Methods inherited from class org.apache.tools.ant.types.resources.ContentTransformingResourceas, getInputStream, getOutputStream, getSize, isAppendSupported, wrapStream, wrapStream
 - 
Methods inherited from class org.apache.tools.ant.types.resources.ResourceDecoratoraddConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSize
 - 
Methods inherited from class org.apache.tools.ant.types.ResourceasOptional, clone, equals, getMagicNumber, getRef, iterator, size, toLongString
 - 
Methods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
 
- 
 
- 
- 
- 
Constructor Detail- 
CompressedResourceprotected CompressedResource() no arg constructor
 - 
CompressedResourceprotected CompressedResource(ResourceCollection other) Constructor with another resource to wrap.- Parameters:
- other- the resource to wrap.
 
 
- 
 
-