org.apache.tools.ant.types.resources
Class GZipResource
- Cloneable, Comparable, ResourceCollection
public class GZipResource
A GZip compressed resource.
Wraps around another resource, delegates all quries to that
other resource but uncompresses/compresses streams on the fly.
protected String | getCompressionName() - Get the name of the compression method.
|
protected InputStream | wrapStream(InputStream in) - Decompress on the fly using java.util.zip.GZIPInputStream.
|
protected OutputStream | wrapStream(OutputStream out) - Compress on the fly using java.util.zip.GZIPOutStream.
|
addConfigured , compareTo , getCompressionName , getInputStream , getLastModified , getName , getOutputStream , getSize , hashCode , isDirectory , isExists , isFilesystemOnly , setDirectory , setExists , setLastModified , setName , setRefid , setSize , toString , wrapStream , wrapStream |
clone , compareTo , equals , getInputStream , getLastModified , getMagicNumber , getName , getOutputStream , getSize , hashCode , isDirectory , isExists , isFilesystemOnly , iterator , setDirectory , setExists , setLastModified , setName , setRefid , setSize , size , toLongString , toString |
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
GZipResource
public GZipResource()
A no-arg constructor
GZipResource
public GZipResource(ResourceCollection other)
Constructor with another resource to wrap.
other
- the resource to wrap.
wrapStream
protected InputStream wrapStream(InputStream in)
throws IOException
Decompress on the fly using java.util.zip.GZIPInputStream.
- wrapStream in interface CompressedResource
wrapStream
protected OutputStream wrapStream(OutputStream out)
throws IOException
Compress on the fly using java.util.zip.GZIPOutStream.
- wrapStream in interface CompressedResource
out
- the stream to wrap.