code: public void send(final String bitString) {
          BitSet bitSet = new BitSet(bitString.length());
          for (int i = 0; i < bitString.length(); i++) {
              if (bitString.charAt(i) == '1') {
                  bitSet.set(i);
              }
          }
          send(bitSet, bitString.length());
      }
docs: Send a string of bits
  
  @param bitString Bits (e.g. 000000000001010100010001)