org.glassfish.grizzly.compression.lzma.impl
Class Encoder

java.lang.Object
  extended by org.glassfish.grizzly.compression.lzma.impl.Encoder

public class Encoder
extends java.lang.Object

RangeEncoder

Author:
Igor Pavlov

Field Summary
static int EMatchFinderTypeBT2
           
static int EMatchFinderTypeBT4
           
static int kNumLenSpecSymbols
           
 
Constructor Summary
Encoder()
           
 
Method Summary
 void code(LZMAEncoder.LZMAOutputState state, long inSize, long outSize)
           
 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(Buffer dst)
           
 
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

kNumLenSpecSymbols

public static final int kNumLenSpecSymbols
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(LZMAEncoder.LZMAOutputState state,
                 long inSize,
                 long outSize)
          throws java.io.IOException
Throws:
java.io.IOException

writeCoderProperties

public void writeCoderProperties(Buffer dst)
                          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 © 2012 Oracle Corporation. All Rights Reserved.