org.apache.ant.compress.util
Interface ArchiveStreamFactory
- All Known Subinterfaces:
- FileAwareArchiveStreamFactory
- All Known Implementing Classes:
- ArStreamFactory, CpioStreamFactory, DumpStreamFactory, TarStreamFactory, ZipStreamFactory
public interface ArchiveStreamFactory
Creates streams for the supported archive formats.
Method Summary |
org.apache.commons.compress.archivers.ArchiveInputStream |
getArchiveStream(java.io.InputStream stream,
java.lang.String encoding)
|
org.apache.commons.compress.archivers.ArchiveOutputStream |
getArchiveStream(java.io.OutputStream stream,
java.lang.String encoding)
|
getArchiveStream
org.apache.commons.compress.archivers.ArchiveInputStream getArchiveStream(java.io.InputStream stream,
java.lang.String encoding)
throws java.io.IOException
- Parameters:
stream
- the stream to read from, should be bufferedencoding
- the encoding of the entry names, ignored by all
formats except zip
- Throws:
java.io.IOException
getArchiveStream
org.apache.commons.compress.archivers.ArchiveOutputStream getArchiveStream(java.io.OutputStream stream,
java.lang.String encoding)
throws java.io.IOException
- Parameters:
stream
- the stream to write to, should be bufferedencoding
- the encoding of the entry names, ignored by all
formats except zip
- Throws:
java.io.IOException