|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.util.BinaryArithmeticStream
org.h2.dev.util.BinaryArithmeticStream.In
public static class BinaryArithmeticStream.In
A binary arithmetic input stream.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.h2.dev.util.BinaryArithmeticStream |
|---|
BinaryArithmeticStream.Huffman, BinaryArithmeticStream.In, BinaryArithmeticStream.Out |
| Field Summary |
|---|
| Fields inherited from class org.h2.dev.util.BinaryArithmeticStream |
|---|
high, low, MAX_PROBABILITY |
| Constructor Summary | |
|---|---|
BinaryArithmeticStream.In(java.io.InputStream in)
|
|
| Method Summary | |
|---|---|
boolean |
readBit(int probability)
Read a bit. |
int |
readGolomb(int divisor)
Read a value that is stored as a Golomb code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryArithmeticStream.In(java.io.InputStream in)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public boolean readBit(int probability)
throws java.io.IOException
probability - the probability that the value is true
java.io.IOException
public int readGolomb(int divisor)
throws java.io.IOException
divisor - the divisor
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||