public class XmlWriter extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
private static Map<Character,String> |
encoding
The output writer to save the values to.
|
protected PrintWriter |
out |
Constructor and Description |
---|
XmlWriter(PrintWriter out) |
protected final PrintWriter out
public XmlWriter(PrintWriter out)
public void flush()
public static String encode(String unencoded, boolean keepApos)
unencoded
- the unencoded input stringkeepApos
- true if apostrophe sign should stay as it is (in order to work around
a Java bug that renders
new JLabel("<html>'</html>")
literally as 6 character string, see #7558)public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException