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
LZMAOutputStream doesn't support flushing. |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int b) |
write
public LZMACompressorOutputStream(OutputStream outputStream) throws IOException
outputStream
- the stream to wrapIOException
- on errorpublic void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
LZMAOutputStream
doesn't support flushing.flush
in interface Flushable
flush
in class OutputStream
IOException
public void finish() throws IOException
IOException
- on errorpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.