Package org.apache.poi.xssf.usermodel
Class XSSFRichTextStringHelper
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFRichTextStringHelper
-
public class XSSFRichTextStringHelper extends Object
A helper to accessXSSFRichTextString
's APIs.- Author:
- jumperchen
-
-
Constructor Summary
Constructors Constructor Description XSSFRichTextStringHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addRun(org.apache.poi.xssf.usermodel.XSSFRichTextString richTextString, String text, org.apache.poi.xssf.usermodel.XSSFFont font)
static String
utfEncode(String value)
For all characters which cannot be represented in XML as defined by the XML 1.0 specification, the characters are escaped using the Unicode numerical character representation escape character format _xHHHH_, where H represents a hexadecimal character in the character's value.
-
-
-
Method Detail
-
addRun
public static void addRun(org.apache.poi.xssf.usermodel.XSSFRichTextString richTextString, String text, org.apache.poi.xssf.usermodel.XSSFFont font)
-
utfEncode
public static String utfEncode(String value)
For all characters which cannot be represented in XML as defined by the XML 1.0 specification, the characters are escaped using the Unicode numerical character representation escape character format _xHHHH_, where H represents a hexadecimal character in the character's value.Example: The Unicode character 0D is invalid in an XML 1.0 document, so it shall be escaped as
See section 3.18.9 in the OOXML spec._x000D_
.- Parameters:
value
- the string to encode- Returns:
- the encoded string
- Since:
- 3.9.10
-
-