public abstract class CommonsCompressCompressorResource
extends org.apache.tools.ant.types.resources.ContentTransformingResource
Wraps around another resource, delegates all queries to that other resource but uncompresses/compresses streams on the fly.
| Modifier | Constructor and Description |
|---|---|
protected |
CommonsCompressCompressorResource(java.lang.String name) |
protected |
CommonsCompressCompressorResource(java.lang.String name,
CompressorStreamFactory factory) |
protected |
CommonsCompressCompressorResource(java.lang.String name,
CompressorStreamFactory factory,
org.apache.tools.ant.types.ResourceCollection other)
Constructor with another resource to wrap.
|
protected |
CommonsCompressCompressorResource(java.lang.String name,
org.apache.tools.ant.types.ResourceCollection other)
Constructor with another resource to wrap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDecompressConcatenated(boolean b)
Whether to extract the whole resource if it contains multiple
concatenated streams.
|
protected void |
setFactory(CompressorStreamFactory factory) |
java.lang.String |
toString()
Get the string representation of this Resource.
|
protected java.io.InputStream |
wrapStream(java.io.InputStream in)
Decompress on the fly.
|
protected java.io.OutputStream |
wrapStream(java.io.OutputStream out)
Compress on the fly.
|
as, getInputStream, getOutputStream, getSize, isAppendSupportedaddConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSizeclone, equals, getMagicNumber, iterator, size, toLongStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectprotected CommonsCompressCompressorResource(java.lang.String name)
protected CommonsCompressCompressorResource(java.lang.String name,
CompressorStreamFactory factory)
protected CommonsCompressCompressorResource(java.lang.String name,
org.apache.tools.ant.types.ResourceCollection other)
other - the resource to wrap.protected CommonsCompressCompressorResource(java.lang.String name,
CompressorStreamFactory factory,
org.apache.tools.ant.types.ResourceCollection other)
other - the resource to wrap.protected final void setFactory(CompressorStreamFactory factory)
public void setDecompressConcatenated(boolean b)
Defaults to false for backwards compatibility.
protected final java.io.InputStream wrapStream(java.io.InputStream in)
throws java.io.IOException
wrapStream in class org.apache.tools.ant.types.resources.ContentTransformingResourcein - the stream to wrap.java.io.IOException - if there is a problem.protected final java.io.OutputStream wrapStream(java.io.OutputStream out)
throws java.io.IOException
wrapStream in class org.apache.tools.ant.types.resources.ContentTransformingResourceout - the stream to wrap.java.io.IOException - if there is a problem.public java.lang.String toString()
toString in class org.apache.tools.ant.types.Resource