Class BinaryArithmeticStream.In

java.lang.Object
org.h2.dev.util.BinaryArithmeticStream
org.h2.dev.util.BinaryArithmeticStream.In
Enclosing class:
BinaryArithmeticStream

public static class BinaryArithmeticStream.In extends BinaryArithmeticStream
A binary arithmetic input stream.
  • Constructor Details

  • Method Details

    • readBit

      public boolean readBit(int probability) throws IOException
      Read a bit.
      Parameters:
      probability - the probability that the value is true
      Returns:
      the value
      Throws:
      IOException
    • readGolomb

      public int readGolomb(int divisor) throws IOException
      Read a value that is stored as a Golomb code.
      Parameters:
      divisor - the divisor
      Returns:
      the value
      Throws:
      IOException