org.apache.ant.compress.util
Class BZip2StreamFactory

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

public class BZip2StreamFactory
extends java.lang.Object
implements CompressorStreamFactory

Creates streams for the supported compression formats.


Constructor Summary
BZip2StreamFactory()
           
 
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

BZip2StreamFactory

public BZip2StreamFactory()
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