public class XML extends Object
Constructor and Description |
---|
XML() |
Modifier and Type | Method and Description |
---|---|
static void |
escapeAttributeValue(char[] chars,
int start,
int length,
Writer out) |
static void |
escapeAttributeValue(String str,
Writer out) |
static void |
escapeCharData(String str,
Writer out) |
static void |
writeUnescapedXML(Writer out,
String tag,
String val,
Object... attrs)
does NOT escape character data in val, must already be valid XML
|
static void |
writeXML(Writer out,
String tag,
String val) |
static void |
writeXML(Writer out,
String tag,
String val,
Map<String,String> attrs)
escapes character data in val
|
static void |
writeXML(Writer out,
String tag,
String val,
Object... attrs)
escapes character data in val
|
public static void escapeCharData(String str, Writer out) throws IOException
IOException
- If there is a low-level I/O error.public static void escapeAttributeValue(String str, Writer out) throws IOException
IOException
public static void escapeAttributeValue(char[] chars, int start, int length, Writer out) throws IOException
IOException
public static final void writeXML(Writer out, String tag, String val) throws IOException
IOException
public static final void writeUnescapedXML(Writer out, String tag, String val, Object... attrs) throws IOException
IOException
public static final void writeXML(Writer out, String tag, String val, Object... attrs) throws IOException
IOException
public static void writeXML(Writer out, String tag, String val, Map<String,String> attrs) throws IOException
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.