public JBBPOut Bits(final JBBPBitNumber numberOfBits, final int value) throws IOException {
    assertNotEnded();
    JBBPUtils.assertNotNull(numberOfBits, "Number of bits must not be null");
    if (this.processCommands) {
      _writeBits(numberOfBits, value);
    }
    return this;
  }
public JBBPOut Bits ( final JBBPBitNumber numberOfBits , final int value ) throws IOException { assertNotEnded ( ) ; JBBPUtils . assertNotNull ( numberOfBits , "Number of bits must not be null" ) ; if ( this . processCommands ) { _writeBits ( numberOfBits , value ) ; } return this ; }
Write bits from a value into the output stream

@param numberOfBits the number of bits to be saved
@param value        the value which bits must be saved
@return the DSL session
@throws IOException it will be thrown for transport errors