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.OutputStream
java.io.IOException
public void write(byte[] buf, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
LZMAOutputStream
doesn't support flushing.flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void finish() throws java.io.IOException
java.io.IOException
- on errorpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved