uk.org.retep.util.io.lzma
Class Encoder
java.lang.Object
uk.org.retep.util.io.lzma.Encoder
public class Encoder
- extends java.lang.Object
Part of the LZMA SDK 4.63 written and placed in the public domain by
Igor Pavlov.
The LZMA SDK provides the documentation, samples, header files, libraries,
and tools you need to develop applications that use LZMA compression.
LZMA is default and general compression method of 7z format
in 7-Zip compression program (www.7-zip.org). LZMA provides high
compression ratio and very fast decompression.
LZMA is an improved version of famous LZ77 compression algorithm.
It was improved in way of maximum increasing of compression ratio,
keeping high decompression speed and low memory requirements for
decompressing.
This version is virtually identical to his version except minor refactoring
to conform with coding standards and Java 6.
- Since:
- 9.1.17
- Author:
- Igor Pavlov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMatchFinderTypeBT2
public static final int EMatchFinderTypeBT2
- See Also:
- Constant Field Values
EMatchFinderTypeBT4
public static final int EMatchFinderTypeBT4
- See Also:
- Constant Field Values
Encoder
public Encoder()
codeOneBlock
public void codeOneBlock(long[] inSize,
long[] outSize,
boolean[] finished)
throws java.io.IOException
- Throws:
java.io.IOException
code
public void code(java.io.InputStream inStream,
java.io.OutputStream outStream,
long inSize,
long outSize,
ProgressListener progress)
throws java.io.IOException
- Throws:
java.io.IOException
writeCoderProperties
public void writeCoderProperties(java.io.OutputStream outStream)
throws java.io.IOException
- Throws:
java.io.IOException
setAlgorithm
public boolean setAlgorithm(int algorithm)
setDictionarySize
public boolean setDictionarySize(int dictionarySize)
setNumFastBytes
public boolean setNumFastBytes(int numFastBytes)
setMatchFinder
public boolean setMatchFinder(int matchFinderIndex)
setLcLpPb
public boolean setLcLpPb(int lc,
int lp,
int pb)
setEndMarkerMode
public void setEndMarkerMode(boolean endMarkerMode)
Copyright © 1998-2010 Retep Development Group. All Rights Reserved.