Class BitInputStream

java.lang.Object
eu.svjatoslav.commons.data.BitInputStream

public class BitInputStream extends Object
Read individual bits from the input stream.
  • Constructor Details

    • BitInputStream

      public BitInputStream(InputStream inputStream)
  • Method Details

    • readBits

      public int readBits(int bitCount) throws IOException
      Read bits from the input stream.
      Parameters:
      bitCount - Number of bits to read.
      Returns:
      Read bits.
      Throws:
      IOException - If an I/O error occurs.