Skip to content

Commit

Permalink
Add Javadoc for new modes of PrettyPrintWriter.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Sep 27, 2023
1 parent 5499370 commit 71f936d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xstream-distribution/src/content/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ <h2>Minor changes</h2>
<li>GHI:#342: Optimize internal handling of children in DomReader avoiding O(n²) access times for siblings (by Shiang-Yun Yang).</li>
</ul>

<h2>API changes</h2>

<ul>
<li>Added constant c.t.x.io.xml.PrettyPrintWriter.XML_1_0_REPLACEMENT.</li>
<li>Added constant c.t.x.io.xml.PrettyPrintWriter.XML_1_1_REPLACEMENT.</li>
</ul>

<h1 id="1.4.20">1.4.20</h1>

<p>Released December 24, 2022.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,21 @@
*/
public class PrettyPrintWriter extends AbstractXmlWriter {

/** Quirks mode: Writes any character into data stream incl. U+0000. */
public static int XML_QUIRKS = -1;
/** XML 1.0 mode: Writes characters according XML 1.0 specification, throws {@link StreamException} for invalid characters. */
public static int XML_1_0 = 0;
/** XML 1.1 mode: Writes characters according XML 1.1 specification, throws {@link StreamException} for invalid characters. */
public static int XML_1_1 = 1;
/**
* XML 1.0 mode: Writes characters according XML 1.0 specification, writes character U+FFFFD as replacement for invalid ones.
* @since upcoming
*/
public static int XML_1_0_REPLACEMENT = 2;
/**
* XML 1.1 mode: Writes characters according XML 1.1 specification, writes character U+FFFFD as replacement for invalid ones.
* @since upcoming
*/
public static int XML_1_1_REPLACEMENT = 3;

private final QuickWriter writer;
Expand Down

0 comments on commit 71f936d

Please sign in to comment.