uk.org.retep.util.io.lzma
Class LzmaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by uk.org.retep.util.io.lzma.LzmaOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class LzmaOutputStream
extends java.io.OutputStream

An OutputStream that compresses with the LZMA format

Author:
peter

Field Summary
static int ALGORITHM
          The default algorithm used as defined by the LZMA SDK
static int DICTIONARY_SIZE
          The default dictionary size as defined by the LZMA SDK
static int FB
           
static int LC
           
static int LP
           
static int MATCH_FINDER
          The default match finder as defined by the LZMA SDK
static int PB
           
 
Constructor Summary
LzmaOutputStream(java.io.OutputStream outputStream)
           
LzmaOutputStream(java.io.OutputStream outputStream, long streamSize)
           
LzmaOutputStream(java.io.OutputStream outputStream, ProgressListener listener)
           
LzmaOutputStream(java.io.OutputStream outputStream, ProgressListener listener, long streamSize)
           
LzmaOutputStream(java.io.OutputStream outputStream, ProgressListener listener, long streamSize, int algorithm, int dictionarySize, int matchFinder, int fb, int lc, int lp, int pb)
           
 
Method Summary
 void close()
           
 void flush()
           
 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
 

Field Detail

ALGORITHM

public static final int ALGORITHM
The default algorithm used as defined by the LZMA SDK

See Also:
Constant Field Values

DICTIONARY_SIZE

public static final int DICTIONARY_SIZE
The default dictionary size as defined by the LZMA SDK

See Also:
Constant Field Values

MATCH_FINDER

public static final int MATCH_FINDER
The default match finder as defined by the LZMA SDK

See Also:
Constant Field Values

FB

public static final int FB
See Also:
Constant Field Values

LC

public static final int LC
See Also:
Constant Field Values

LP

public static final int LP
See Also:
Constant Field Values

PB

public static final int PB
See Also:
Constant Field Values
Constructor Detail

LzmaOutputStream

public LzmaOutputStream(java.io.OutputStream outputStream)
                 throws java.io.IOException
Parameters:
outputStream - OutputStream to write to
Throws:
java.io.IOException

LzmaOutputStream

public LzmaOutputStream(java.io.OutputStream outputStream,
                        ProgressListener listener)
                 throws java.io.IOException
Parameters:
outputStream - OutputStream to write to
listener - ProgressListener to receive events
Throws:
java.io.IOException

LzmaOutputStream

public LzmaOutputStream(java.io.OutputStream outputStream,
                        long streamSize)
                 throws java.io.IOException
Parameters:
outputStream - OutputStream to write to
streamSize - The source stream size if known or -1L if unknown
Throws:
java.io.IOException

LzmaOutputStream

public LzmaOutputStream(java.io.OutputStream outputStream,
                        ProgressListener listener,
                        long streamSize)
                 throws java.io.IOException
Parameters:
outputStream - OutputStream to write to
listener - ProgressListener to receive events
streamSize - The source stream size if known or -1L if unknown
Throws:
java.io.IOException

LzmaOutputStream

public LzmaOutputStream(java.io.OutputStream outputStream,
                        ProgressListener listener,
                        long streamSize,
                        int algorithm,
                        int dictionarySize,
                        int matchFinder,
                        int fb,
                        int lc,
                        int lp,
                        int pb)
                 throws java.io.IOException
Parameters:
outputStream - OutputStream to write to
listener - ProgressListener to receive events
streamSize - The source stream size if known or -1L if unknown
algorithm - the algorithm to use
dictionarySize - The dictionary size
matchFinder - The MatchFinder to user
fb -
lc -
lp -
pb -
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException


Copyright © 1998-2010 Retep Development Group. All Rights Reserved.