public class SevenZStreamFactory extends java.lang.Object implements FileAwareArchiveStreamFactory
Modifier and Type | Class and Description |
---|---|
static class |
SevenZStreamFactory.SevenZArchiveOutputStream
Not really a stream but provides an ArchiveOutputStream
compatible interface over SevenZOutputFile.
|
Constructor and Description |
---|
SevenZStreamFactory() |
Modifier and Type | Method and Description |
---|---|
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) |
public org.apache.commons.compress.archivers.ArchiveInputStream getArchiveStream(java.io.InputStream stream, java.lang.String encoding) throws java.io.IOException
getArchiveStream
in interface ArchiveStreamFactory
stream
- the stream to read from, should be bufferedencoding
- the encoding of the entry namesjava.io.IOException
public org.apache.commons.compress.archivers.ArchiveOutputStream getArchiveStream(java.io.OutputStream stream, java.lang.String encoding) throws java.io.IOException
getArchiveStream
in interface ArchiveStreamFactory
stream
- the stream to write to, should be bufferedencoding
- the encoding of the entry namesjava.io.IOException
public org.apache.commons.compress.archivers.ArchiveInputStream getArchiveInputStream(java.io.File file, java.lang.String encoding) throws java.io.IOException
getArchiveInputStream
in interface FileAwareArchiveStreamFactory
file
- the file to read fromencoding
- the encoding of the entry namesjava.io.IOException
public org.apache.commons.compress.archivers.ArchiveOutputStream getArchiveOutputStream(java.io.File file, java.lang.String encoding) throws java.io.IOException
getArchiveOutputStream
in interface FileAwareArchiveStreamFactory
file
- the file to write toencoding
- the encoding of the entry namesjava.io.IOException