Class DefaultBitInputStream

    • Constructor Detail

      • DefaultBitInputStream

        public DefaultBitInputStream​(InputStream in)
    • Method Detail

      • readBits

        public final int readBits​(int n)
                           throws IOException
        Description copied from interface: BitInputStream
        Read specified number of bits from the stream. The bits are return in an integer value.
        Specified by:
        readBits in interface BitInputStream
        Parameters:
        n - number of bits to read
        Throws:
        IOException - as per streaming contract in java.
      • readLongBits

        public final long readLongBits​(int n)
                                throws IOException
        Description copied from interface: BitInputStream
        Read specified number of bits from the stream. The bits are return in a long value.
        Specified by:
        readLongBits in interface BitInputStream
        Parameters:
        n - number of bits to read
        Throws:
        IOException - as per streaming contract in java.