@@ -31,7 +31,7 @@ private static Object parse(
3131 int currentNestingDepth
3232 ) throws JSONException {
3333 return parse (x ,arrayForm , ja ,
34- keepStrings ? XMLtoJSONMLParserConfiguration .KEEP_STRINGS : XMLtoJSONMLParserConfiguration .ORIGINAL ,
34+ keepStrings ? JSONMLParserConfiguration .KEEP_STRINGS : JSONMLParserConfiguration .ORIGINAL ,
3535 currentNestingDepth );
3636 }
3737
@@ -41,17 +41,17 @@ private static Object parse(
4141 * @param arrayForm true if array form, false if object form.
4242 * @param ja The JSONArray that is containing the current tag or null
4343 * if we are at the outermost level.
44- * @param config The XML parser configuration:
45- * XMLtoJSONMLParserConfiguration .ORIGINAL is the default behaviour;
46- * XMLtoJSONMLParserConfiguration .KEEP_STRINGS means Don't type-convert text nodes and attribute values.
44+ * @param config The parser configuration:
45+ * JSONMLParserConfiguration .ORIGINAL is the default behaviour;
46+ * JSONMLParserConfiguration .KEEP_STRINGS means Don't type-convert text nodes and attribute values.
4747 * @return A JSONArray if the value is the outermost tag, otherwise null.
4848 * @throws JSONException if a parsing error occurs
4949 */
5050 private static Object parse (
5151 XMLTokener x ,
5252 boolean arrayForm ,
5353 JSONArray ja ,
54- XMLtoJSONMLParserConfiguration config ,
54+ JSONMLParserConfiguration config ,
5555 int currentNestingDepth
5656 ) throws JSONException {
5757 String attribute ;
@@ -254,7 +254,7 @@ private static Object parse(
254254 * @throws JSONException Thrown on error converting to a JSONArray
255255 */
256256 public static JSONArray toJSONArray (String string ) throws JSONException {
257- return (JSONArray )parse (new XMLTokener (string ), true , null , XMLtoJSONMLParserConfiguration .ORIGINAL , 0 );
257+ return (JSONArray )parse (new XMLTokener (string ), true , null , JSONMLParserConfiguration .ORIGINAL , 0 );
258258 }
259259
260260
@@ -293,14 +293,14 @@ public static JSONArray toJSONArray(String string, boolean keepStrings) throws J
293293 * but just leaves it as a string.
294294 * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre> are ignored.
295295 * @param string The source string.
296- * @param config The XML parser configuration:
297- * XMLtoJSONMLParserConfiguration .ORIGINAL is the default behaviour;
298- * XMLtoJSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
296+ * @param config The parser configuration:
297+ * JSONMLParserConfiguration .ORIGINAL is the default behaviour;
298+ * JSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
299299 * or numeric values and will instead be left as strings
300300 * @return A JSONArray containing the structured data from the XML string.
301301 * @throws JSONException Thrown on error converting to a JSONArray
302302 */
303- public static JSONArray toJSONArray (String string , XMLtoJSONMLParserConfiguration config ) throws JSONException {
303+ public static JSONArray toJSONArray (String string , JSONMLParserConfiguration config ) throws JSONException {
304304 return (JSONArray )parse (new XMLTokener (string ), true , null , config , 0 );
305305 }
306306
@@ -317,14 +317,14 @@ public static JSONArray toJSONArray(String string, XMLtoJSONMLParserConfiguratio
317317 * but just leaves it as a string.
318318 * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre> are ignored.
319319 * @param x An XMLTokener.
320- * @param config The XML parser configuration:
321- * XMLtoJSONMLParserConfiguration .ORIGINAL is the default behaviour;
322- * XMLtoJSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
320+ * @param config The parser configuration:
321+ * JSONMLParserConfiguration .ORIGINAL is the default behaviour;
322+ * JSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
323323 * or numeric values and will instead be left as strings
324324 * @return A JSONArray containing the structured data from the XML string.
325325 * @throws JSONException Thrown on error converting to a JSONArray
326326 */
327- public static JSONArray toJSONArray (XMLTokener x , XMLtoJSONMLParserConfiguration config ) throws JSONException {
327+ public static JSONArray toJSONArray (XMLTokener x , JSONMLParserConfiguration config ) throws JSONException {
328328 return (JSONArray )parse (x , true , null , config , 0 );
329329 }
330330
@@ -416,14 +416,14 @@ public static JSONObject toJSONObject(String string, boolean keepStrings) throws
416416
417417 * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre> are ignored.
418418 * @param string The XML source text.
419- * @param config The XML parser configuration:
420- * XMLtoJSONMLParserConfiguration .ORIGINAL is the default behaviour;
421- * XMLtoJSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
419+ * @param config The parser configuration:
420+ * JSONMLParserConfiguration .ORIGINAL is the default behaviour;
421+ * JSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
422422 * or numeric values and will instead be left as strings
423423 * @return A JSONObject containing the structured data from the XML string.
424424 * @throws JSONException Thrown on error converting to a JSONObject
425425 */
426- public static JSONObject toJSONObject (String string , XMLtoJSONMLParserConfiguration config ) throws JSONException {
426+ public static JSONObject toJSONObject (String string , JSONMLParserConfiguration config ) throws JSONException {
427427 return (JSONObject )parse (new XMLTokener (string ), false , null , config , 0 );
428428 }
429429
@@ -476,14 +476,14 @@ public static JSONObject toJSONObject(XMLTokener x, boolean keepStrings) throws
476476
477477 * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre> are ignored.
478478 * @param x An XMLTokener of the XML source text.
479- * @param config The XML parser configuration:
480- * XMLtoJSONMLParserConfiguration .ORIGINAL is the default behaviour;
481- * XMLtoJSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
479+ * @param config The parser configuration:
480+ * JSONMLParserConfiguration .ORIGINAL is the default behaviour;
481+ * JSONMLParserConfiguration .KEEP_STRINGS means values will not be coerced into boolean
482482 * or numeric values and will instead be left as strings
483483 * @return A JSONObject containing the structured data from the XML string.
484484 * @throws JSONException Thrown on error converting to a JSONObject
485485 */
486- public static JSONObject toJSONObject (XMLTokener x , XMLtoJSONMLParserConfiguration config ) throws JSONException {
486+ public static JSONObject toJSONObject (XMLTokener x , JSONMLParserConfiguration config ) throws JSONException {
487487 return (JSONObject )parse (x , false , null , config , 0 );
488488 }
489489
0 commit comments