public class LZMACompressorOutputStream extends CompressorOutputStream
| Constructor and Description | 
|---|
| LZMACompressorOutputStream(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  LZMAOutputStreamdoesn't support flushing. | 
| void | write(byte[] buf,
     int off,
     int len) | 
| void | write(int b) | 
writepublic LZMACompressorOutputStream(OutputStream outputStream) throws IOException
outputStream - the stream to wrapIOException - on errorpublic void write(int b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void flush() throws IOException
LZMAOutputStream doesn't support flushing.flush in interface Flushableflush in class OutputStreamIOExceptionpublic void finish() throws IOException
IOException - on errorpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.