lzma.streams
Class LzmaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by 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.
 
Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
LzmaOutputStream(OutputStream out, Encoder encoder)
           
LzmaOutputStream(OutputStream out, Encoder encoder, boolean isEncoderConfigured)
           
 
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.io.FilterOutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LzmaOutputStream

public LzmaOutputStream(OutputStream out,
                        Encoder encoder)

LzmaOutputStream

public LzmaOutputStream(OutputStream out,
                        Encoder encoder,
                        boolean isEncoderConfigured)
Method Detail

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.