org.apache.ant.compress.util
Interface FileAwareCompressorStreamFactory

All Superinterfaces:
CompressorStreamFactory
All Known Implementing Classes:
Pack200StreamFactory

public interface FileAwareCompressorStreamFactory
extends CompressorStreamFactory

Creates streams for the supported compression formats that may take advantage of writing to/reading from a file.

Since:
Apache Compress Antlib 1.1

Method Summary
 org.apache.commons.compress.compressors.CompressorInputStream getCompressorInputStream(java.io.File file)
           
 org.apache.commons.compress.compressors.CompressorOutputStream getCompressorOutputStream(java.io.File file)
           
 
Methods inherited from interface org.apache.ant.compress.util.CompressorStreamFactory
getCompressorStream, getCompressorStream
 

Method Detail

getCompressorInputStream

org.apache.commons.compress.compressors.CompressorInputStream getCompressorInputStream(java.io.File file)
                                                                                       throws java.io.IOException
Parameters:
file - the file to read from
Throws:
java.io.IOException

getCompressorOutputStream

org.apache.commons.compress.compressors.CompressorOutputStream getCompressorOutputStream(java.io.File file)
                                                                                         throws java.io.IOException
Parameters:
file - the file to write to
Throws:
java.io.IOException