diff --git a/JSONArray.java b/JSONArray.java index 5ccb65b..a3df975 100644 --- a/JSONArray.java +++ b/JSONArray.java @@ -1083,6 +1083,8 @@ public class JSONArray implements Iterable { *

* Warning: This method assumes that the data structure is acyclical. * + * @param writer + * Writes the serialized JSON * @param indentFactor * The number of spaces to add to each level of indentation. * @param indent @@ -1090,7 +1092,7 @@ public class JSONArray implements Iterable { * @return The writer. * @throws JSONException */ - Writer write(Writer writer, int indentFactor, int indent) + public Writer write(Writer writer, int indentFactor, int indent) throws JSONException { try { boolean commanate = false; diff --git a/JSONObject.java b/JSONObject.java index e52a567..2f613f8 100644 --- a/JSONObject.java +++ b/JSONObject.java @@ -1781,10 +1781,16 @@ public class JSONObject { *

* Warning: This method assumes that the data structure is acyclical. * + * @param writer + * Writes the serialized JSON + * @param indentFactor + * The number of spaces to add to each level of indentation. + * @param indent + * The indention of the top level. * @return The writer. * @throws JSONException */ - Writer write(Writer writer, int indentFactor, int indent) + public Writer write(Writer writer, int indentFactor, int indent) throws JSONException { try { boolean commanate = false;