question: protected final void writeS ( ByteBuffer buf , String text ) { if ( text == null ) { buf . putChar ( '\000' ) ; } else { final int len = text . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { buf . putChar ( text . charAt ( i ) ) ; } buf . putChar ( '\000' ) ; } }
target:  Write String to buffer