function buf = create_java_lang_stringbuffer ( str ) len = length(str) ; unicode = uint8(zeros(2,len+1)) ; unicode(2,1:len) = uint8(str(:)) ; buf = uint8([172, 237, 0, 5, 115, 114, 0, 22, 106, 97, \ 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, \ 114, 105, 110, 103, 66, 117, 102, 102, 101, 114, \ 47, 7, 7, 217, 234, 200, 234, 211, 3, 0, \ 3, 73, 0, 5, 99, 111, 117, 110, 116, 90, \ 0, 6, 115, 104, 97, 114, 101, 100, 91, 0, \ 5, 118, 97, 108, 117, 101, 116, 0, 2, 91, \ 67, 120, 112, 0, 0, 0, len, 0, 117, 114, \ 0, 2, 91, 67, 176, 38, 102, 176, 226, 93, \ 132, 172, 2, 0, 0, 120, 112, 0, 0, 0, \ len+1, unicode(:)', 120 ]); endfunction