public JBBPOut Short(final String str,final JBBPBitOrder bitOrder) throws IOException {
  assertNotEnded();
  if (this.processCommands) {
    final boolean msb0=bitOrder == JBBPBitOrder.MSB0;
    for (int i=0; i < str.length(); i++) {
      short value=(short)str.charAt(i);
      if (msb0) {
        value=(short)JBBPFieldShort.reverseBits(value);
      }
      _writeShort(value);
    }
  }
  return this;
}

public JBBPOut Short ( final String str , final JBBPBitOrder bitOrder ) throws IOException { assertNotEnded ( ) ; if ( this . processCommands ) { final boolean msb0 = bitOrder == JBBPBitOrder . MSB0 ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { short value = ( short ) str . charAt ( i ) ; if ( msb0 ) { value = ( short ) JBBPFieldShort . reverseBits ( value ) ; } _writeShort ( value ) ; } } return this ; }
write codes of chars as 16 bit values into the stream .
