org.apache.ant.compress.util
Interface CompressorStreamFactory
- All Known Implementing Classes:
- BZip2StreamFactory, GZipStreamFactory
public interface CompressorStreamFactory
Creates streams for the supported compression formats.
getCompressorStream
CompressorInputStream getCompressorStream(java.io.InputStream stream)
throws java.io.IOException
- Parameters:
stream
- the stream to read from, should be buffered
- Throws:
java.io.IOException
getCompressorStream
CompressorOutputStream getCompressorStream(java.io.OutputStream stream)
throws java.io.IOException
- Parameters:
stream
- the stream to write to, should be buffered
- Throws:
java.io.IOException