org.apache.ant.compress.util
Interface ArchiveStreamFactory

All Known Implementing Classes:
ArStreamFactory, CpioStreamFactory, TarStreamFactory, ZipStreamFactory

public interface ArchiveStreamFactory

Creates streams for the supported archive formats.


Method Summary
 ArchiveInputStream getArchiveStream(java.io.InputStream stream, java.lang.String encoding)
           
 ArchiveOutputStream getArchiveStream(java.io.OutputStream stream, java.lang.String encoding)
           
 

Method Detail

getArchiveStream

ArchiveInputStream getArchiveStream(java.io.InputStream stream,
                                    java.lang.String encoding)
                                    throws java.io.IOException
Parameters:
stream - the stream to read from, should be buffered
encoding - the encoding of the entry names, ignored by all formats except zip
Throws:
java.io.IOException

getArchiveStream

ArchiveOutputStream getArchiveStream(java.io.OutputStream stream,
                                     java.lang.String encoding)
                                     throws java.io.IOException
Parameters:
stream - the stream to write to, should be buffered
encoding - the encoding of the entry names, ignored by all formats except zip
Throws:
java.io.IOException