Class DefaultBitInputStream

    • Constructor Detail

      • DefaultBitInputStream

        public DefaultBitInputStream​(InputStream in)
    • Method Detail

      • readBit

        public final boolean readBit()
        Description copied from interface: BitInputStream
        Reads a single bit from the stream.
        Specified by:
        readBit in interface BitInputStream
      • readBits

        public final int readBits​(int n)
        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
      • readLongBits

        public final long readLongBits​(int n)
        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