org.glassfish.grizzly.compression.lzma.impl.rangecoder
Class BitTreeEncoder

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

public class BitTreeEncoder
extends java.lang.Object

BitTreeEncoder

Author:
Igor Pavlov

Constructor Summary
BitTreeEncoder(int numBitLevels)
           
 
Method Summary
 void encode(RangeEncoder rangeEncoder, int symbol)
           
 int getPrice(int symbol)
           
 void init()
           
 void reverseEncode(RangeEncoder rangeEncoder, int symbol)
           
static void reverseEncode(short[] Models, int startIndex, RangeEncoder rangeEncoder, int NumBitLevels, int symbol)
           
 int reverseGetPrice(int symbol)
           
static int reverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitTreeEncoder

public BitTreeEncoder(int numBitLevels)
Method Detail

init

public void init()

encode

public void encode(RangeEncoder rangeEncoder,
                   int symbol)
            throws java.io.IOException
Throws:
java.io.IOException

reverseEncode

public void reverseEncode(RangeEncoder rangeEncoder,
                          int symbol)
                   throws java.io.IOException
Throws:
java.io.IOException

getPrice

public int getPrice(int symbol)

reverseGetPrice

public int reverseGetPrice(int symbol)

reverseGetPrice

public static int reverseGetPrice(short[] Models,
                                  int startIndex,
                                  int NumBitLevels,
                                  int symbol)

reverseEncode

public static void reverseEncode(short[] Models,
                                 int startIndex,
                                 RangeEncoder rangeEncoder,
                                 int NumBitLevels,
                                 int symbol)
                          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.