question: 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 ; }
target:  Write codes of chars as 16 bit values into the stream.