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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static String |
encode(String unencoded) |
static String |
encode(String unencoded,
boolean keepApos)
Encode the given string in XML1.0 format.
|
void |
flush()
Flushes the stream.
|
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("'")
literally as 6 character string, see #7558)public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException