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:
Cloneable, Comparable<Resource>, Iterable<Resource>, ResourceCollection
- Direct Known Subclasses:
BZip2Resource, GZipResource, XzResource
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 Resource
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedno arg constructorprotectedConstructor with another resource to wrap. -
Method Summary
Methods inherited from class ContentTransformingResource
as, getInputStream, getOutputStream, getSize, isAppendSupported, wrapStream, wrapStreamMethods inherited from class ResourceDecorator
addConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSizeMethods inherited from class Resource
asOptional, clone, equals, getMagicNumber, getRef, iterator, size, toLongStringMethods inherited from class DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesMethods inherited from class ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ResourceCollection
isEmpty, stream
-
Constructor Details
-
CompressedResource
protected CompressedResource()no arg constructor -
CompressedResource
Constructor with another resource to wrap.- Parameters:
other- the resource to wrap.
-
-
Method Details
-
toString
-
getCompressionName
Get the name of the compression method used.- Returns:
- the name of the compression method.
-