Class BinaryArithmeticStream.In

    • Constructor Detail

      • In

        public In​(java.io.InputStream in)
           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readBit

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

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