lzma.streams
Class LzmaOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
lzma.streams.LzmaOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class LzmaOutputStream
- extends FilterOutputStream
An output stream filter that uses LZMA compression.
- Author:
- Julien Ponge
|
Nested Class Summary |
static class |
LzmaOutputStream.Builder
A convenient builder that makes it easier to configure the LZMA encoder. |
|
Method Summary |
void |
close()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LzmaOutputStream
public LzmaOutputStream(OutputStream out,
Encoder encoder)
LzmaOutputStream
public LzmaOutputStream(OutputStream out,
Encoder encoder,
boolean isEncoderConfigured)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
Copyright © 2010. All Rights Reserved.