Package org.apache.solr.common.util
Class XML
java.lang.Object
org.apache.solr.common.util.XML
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidescapeAttributeValue(String str, Writer out) static voidescapeCharData(String str, Writer out) static voidwriteUnescapedXML(Writer out, String tag, String val, Object... attrs) does NOT escape character data in val; it must already be valid XML.static voidescapes character data in val and attributesstatic voidwriteXML(Writer out, String tag, XML.Writable valWritable, Object... attrs)
-
Constructor Details
-
XML
public XML()
-
-
Method Details
-
escapeCharData
- Throws:
IOException
-
escapeAttributeValue
- Throws:
IOException
-
writeUnescapedXML
public static void writeUnescapedXML(Writer out, String tag, String val, Object... attrs) throws IOException does NOT escape character data in val; it must already be valid XML. Attributes are always escaped.- Throws:
IOException
-
writeXML
escapes character data in val and attributes- Throws:
IOException
-
writeXML
public static void writeXML(Writer out, String tag, XML.Writable valWritable, Object... attrs) throws IOException - Throws:
IOException- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-