org.apache.ant.compress.util
Class Pack200StreamFactory

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

public class Pack200StreamFactory
extends java.lang.Object
implements FileAwareCompressorStreamFactory

Creates streams for the pack200 format.

Since:
Apache Compress Antlib 1.1

Constructor Summary
Pack200StreamFactory()
           
 
Method Summary
 org.apache.commons.compress.compressors.CompressorInputStream getCompressorInputStream(java.io.File file)
           
 org.apache.commons.compress.compressors.CompressorOutputStream getCompressorOutputStream(java.io.File file)
           
 org.apache.commons.compress.compressors.CompressorInputStream getCompressorStream(java.io.InputStream stream)
           
 org.apache.commons.compress.compressors.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

Pack200StreamFactory

public Pack200StreamFactory()
Method Detail

getCompressorStream

public org.apache.commons.compress.compressors.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 org.apache.commons.compress.compressors.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

getCompressorInputStream

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

getCompressorOutputStream

public org.apache.commons.compress.compressors.CompressorOutputStream getCompressorOutputStream(java.io.File file)
                                                                                         throws java.io.IOException
Specified by:
getCompressorOutputStream in interface FileAwareCompressorStreamFactory
Parameters:
file - the file to write to
Throws:
java.io.IOException