code: public byte readBitField(final JBBPBitNumber numOfBitsToRead) throws IOException {
      final int value = this.readBits(numOfBitsToRead);
      if (value < 0) {
        throw new EOFException("Can't read bits from stream [" + numOfBitsToRead + ']');
      }
      return (byte) value;
    }
docs: Read bit field from the stream, if it is impossible then IOException will be thrown.
  
  @param numOfBitsToRead field width, must not be null
  @return read value from the stream
  @throws IOException it will be thrown if EOF or troubles to read the stream
  @since 1.3.0