public class LZMACompressorOutputStream extends CompressorOutputStream
| Constructor and Description |
|---|
LZMACompressorOutputStream(java.io.OutputStream outputStream)
Creates a LZMA compressor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish()
Finishes compression without closing the underlying stream.
|
void |
flush()
Doesn't do anything as
LZMAOutputStream doesn't support flushing. |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int b) |
public LZMACompressorOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
outputStream - the stream to wrapjava.io.IOException - on errorpublic void write(int b) throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buf, int off, int len) throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush() throws java.io.IOException
LZMAOutputStream doesn't support flushing.flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void finish() throws java.io.IOException
java.io.IOException - on errorpublic void close() throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException