org.apache.ant.compress.util
Class ZipStreamFactory
java.lang.Object
org.apache.ant.compress.util.ZipStreamFactory
- All Implemented Interfaces:
- ArchiveStreamFactory, FileAwareArchiveStreamFactory
public class ZipStreamFactory
- extends java.lang.Object
- implements FileAwareArchiveStreamFactory
|
Method Summary |
org.apache.commons.compress.archivers.ArchiveInputStream |
getArchiveInputStream(java.io.File file,
java.lang.String encoding)
|
org.apache.commons.compress.archivers.ArchiveOutputStream |
getArchiveOutputStream(java.io.File file,
java.lang.String encoding)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipStreamFactory
public ZipStreamFactory()
getArchiveStream
public org.apache.commons.compress.archivers.ArchiveInputStream getArchiveStream(java.io.InputStream stream,
java.lang.String encoding)
throws java.io.IOException
- Specified by:
getArchiveStream in interface ArchiveStreamFactory
- Parameters:
stream - the stream to read from, should be bufferedencoding - the encoding of the entry names
- Throws:
java.io.IOException
getArchiveStream
public org.apache.commons.compress.archivers.ArchiveOutputStream getArchiveStream(java.io.OutputStream stream,
java.lang.String encoding)
throws java.io.IOException
- Specified by:
getArchiveStream in interface ArchiveStreamFactory
- Parameters:
stream - the stream to write to, should be bufferedencoding - the encoding of the entry names
- Throws:
java.io.IOException
getArchiveInputStream
public org.apache.commons.compress.archivers.ArchiveInputStream getArchiveInputStream(java.io.File file,
java.lang.String encoding)
throws java.io.IOException
- Specified by:
getArchiveInputStream in interface FileAwareArchiveStreamFactory
- Parameters:
file - the file to read fromencoding - the encoding of the entry names
- Throws:
java.io.IOException
getArchiveOutputStream
public org.apache.commons.compress.archivers.ArchiveOutputStream getArchiveOutputStream(java.io.File file,
java.lang.String encoding)
throws java.io.IOException
- Specified by:
getArchiveOutputStream in interface FileAwareArchiveStreamFactory
- Parameters:
file - the file to write toencoding - the encoding of the entry names
- Throws:
java.io.IOException