org.glassfish.grizzly.compression.lzma.impl.rangecoder
Class BitTreeEncoder
java.lang.Object
org.glassfish.grizzly.compression.lzma.impl.rangecoder.BitTreeEncoder
public class BitTreeEncoder
- extends java.lang.Object
BitTreeEncoder
- Author:
- Igor Pavlov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitTreeEncoder
public BitTreeEncoder(int numBitLevels)
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.