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

java.lang.Object
  extended by 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

Field Summary
static int EMatchFinderTypeBT2
           
static int EMatchFinderTypeBT4
           
 
Constructor Summary
Encoder()
           
 
Method Summary
 void code(java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize, ProgressListener progress)
           
 void codeOneBlock(long[] inSize, long[] outSize, boolean[] finished)
           
 boolean setAlgorithm(int algorithm)
           
 boolean setDictionarySize(int dictionarySize)
           
 void setEndMarkerMode(boolean endMarkerMode)
           
 boolean setLcLpPb(int lc, int lp, int pb)
           
 boolean setMatchFinder(int matchFinderIndex)
           
 boolean setNumFastBytes(int numFastBytes)
           
 void writeCoderProperties(java.io.OutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMatchFinderTypeBT2

public static final int EMatchFinderTypeBT2
See Also:
Constant Field Values

EMatchFinderTypeBT4

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

Encoder

public Encoder()
Method Detail

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.