public void writeStringData(String text) {boolean is16bitEncoded = StringUtil.hasMultibyte(text);int keepTogetherSize = 1 + 1; int optionFlags = 0x00;if (is16bitEncoded) {optionFlags |= 0x01;keepTogetherSize += 1; }writeContinueIfRequired(keepTogetherSize);writeByte(optionFlags);writeCharacterData(text, is16bitEncoded);}
public void WriteStringData(String text){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }WriteContinueIfRequired(keepTogetherSize);WriteByte(optionFlags);WriteCharacterData(text, is16bitEncoded);}