text: 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);}