org.apache.ant.compress.util
Class GZipStreamFactory

java.lang.Object
  extended by org.apache.ant.compress.util.GZipStreamFactory
All Implemented Interfaces:
CompressorStreamFactory

public class GZipStreamFactory
extends java.lang.Object
implements CompressorStreamFactory

Creates streams for the supported compression formats.


Constructor Summary
GZipStreamFactory()
           
 
Method Summary
 CompressorInputStream getCompressorStream(java.io.InputStream stream)
           
 CompressorOutputStream getCompressorStream(java.io.OutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZipStreamFactory

public GZipStreamFactory()
Method Detail

getCompressorStream

public CompressorInputStream getCompressorStream(java.io.InputStream stream)
                                          throws java.io.IOException
Specified by:
getCompressorStream in interface CompressorStreamFactory
Parameters:
stream - the stream to read from, should be buffered
Throws:
java.io.IOException

getCompressorStream

public CompressorOutputStream getCompressorStream(java.io.OutputStream stream)
                                           throws java.io.IOException
Specified by:
getCompressorStream in interface CompressorStreamFactory
Parameters:
stream - the stream to write to, should be buffered
Throws:
java.io.IOException