uk.org.retep.util.io.lzma
Class LzmaOutputStream
java.lang.Object
java.io.OutputStream
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 tolistener - 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 tostreamSize - 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 tolistener - ProgressListener to receive eventsstreamSize - 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 tolistener - ProgressListener to receive eventsstreamSize - The source stream size if known or -1L if unknownalgorithm - the algorithm to usedictionarySize - The dictionary sizematchFinder - The MatchFinder to userfb - lc - lp - pb -
- Throws:
java.io.IOException
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.