/** * Writes a sting to the buffer with the appropriate encoding. * @param buffer the buffer to which the string is written * @param s the string to write * @param write_bom true if a byte-order-marker (indicating big-endian) should be written * @param write_length true if the length of the character should be written * @param giop_minor the low-order byte of the giop version (1.x is assumed) */ public void write_string(OutputBuffer buffer, String s, boolean write_bom, boolean write_length, int giop_minor) { for (int i = 0; i < s.length(); i++) { this.write_char(buffer, s.charAt(i), write_bom, write_length, giop_minor); } }
@Override public final void write_wchar(final char c) { check(6); // maximum is UTF-16 handling non-BPM character with BOM // alignment/check must happen prior to calling. codeSetW.write_char( this, c, codeSetW.write_bom( useBOM ), true, giop_minor ); }
codeSetW.write_char( this, s.charAt(i), false, false, this.giop_minor ); codeSetW.write_char( this, (char)0, false, false, giop_minor ); str_size = codeSetW.get_wstring_size( s, startPos, pos );