public class XML extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
XML.Writable |
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; it must already be valid XML.
|
static void |
writeXML(Writer out,
String tag,
String val,
Map<String,String> attrs)
escapes character data in val and attributes
|
static void |
writeXML(Writer out,
String tag,
String val,
Object... attrs)
escapes character data in val and attributes
|
static void |
writeXML(Writer out,
String tag,
XML.Writable valWritable,
Object... attrs) |
public static void escapeCharData(String str, Writer out) throws IOException
IOException
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 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
public static final void writeXML(Writer out, String tag, XML.Writable valWritable, Object... attrs) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.