Package org.apache.solr.common.util
Class XML
- java.lang.Object
- 
- org.apache.solr.common.util.XML
 
- 
 public class XML extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceXML.Writable
 - 
Constructor SummaryConstructors Constructor Description XML()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidescapeAttributeValue(char[] chars, int start, int length, Writer out)static 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 voidwriteXML(Writer out, String tag, String val, Object... attrs)escapes character data in val and attributesstatic voidwriteXML(Writer out, String tag, String val, Map<String,String> attrs)escapes character data in val and attributesstatic voidwriteXML(Writer out, String tag, XML.Writable valWritable, Object... attrs)
 
- 
- 
- 
Method Detail- 
escapeCharDatapublic static void escapeCharData(String str, Writer out) throws IOException - Throws:
- IOException
 
 - 
escapeAttributeValuepublic static void escapeAttributeValue(String str, Writer out) throws IOException - Throws:
- IOException
 
 - 
escapeAttributeValuepublic static void escapeAttributeValue(char[] chars, int start, int length, Writer out) throws IOException- Throws:
- IOException
 
 - 
writeUnescapedXMLpublic static final 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
 
 - 
writeXMLpublic static final void writeXML(Writer out, String tag, String val, Object... attrs) throws IOException escapes character data in val and attributes- Throws:
- IOException
 
 - 
writeXMLpublic static void writeXML(Writer out, String tag, String val, Map<String,String> attrs) throws IOException escapes character data in val and attributes- Throws:
- IOException
 
 - 
writeXMLpublic static final 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.
 
 
- 
 
-