diff --git a/src/main/java/org/json/XMLTokener.java b/src/main/java/org/json/XMLTokener.java index 4b03f97..bc18b31 100644 --- a/src/main/java/org/json/XMLTokener.java +++ b/src/main/java/org/json/XMLTokener.java @@ -20,7 +20,7 @@ public class XMLTokener extends JSONTokener { */ public static final java.util.HashMap entity; - private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL;; + private XMLParserConfiguration configuration = XMLParserConfiguration.ORIGINAL; static { entity = new java.util.HashMap(8); @@ -47,14 +47,15 @@ public class XMLTokener extends JSONTokener { super(s); } + /** + * Construct an XMLTokener from a Reader and an XMLParserConfiguration. + * @param r A source reader. + * @param configuration the configuration that can be used to set certain flags + */ public XMLTokener(Reader r, XMLParserConfiguration configuration) { super(r); this.configuration = configuration; } - public XMLTokener(String s, XMLParserConfiguration configuration) { - super(s); - this.configuration = configuration; - } /** * Get the text in the CDATA block.