public interface JSONFormatter
JSONFormatterPrettyprint
,
Multi-Threading
Formatters are supposed to be thread-safe.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(JSONArray jsonArray) |
java.lang.String |
format(JSONCompoundType jsonCompound) |
java.lang.String |
format(JSONObject jsonObject) |
java.lang.String |
format(java.lang.Object jsonValue) |
void |
format(java.io.OutputStream out,
JSONArray jsonArray) |
void |
format(java.io.OutputStream out,
JSONCompoundType jsonCompound) |
void |
format(java.io.OutputStream out,
JSONObject jsonObject) |
void |
format(java.io.OutputStream out,
java.lang.Object jsonValue) |
JSONFormatterConfiguration |
getConfiguration() |
JSONFormatterConfiguration getConfiguration()
java.lang.String format(JSONObject jsonObject) throws JSONException
JSONException
java.lang.String format(JSONArray jsonArray) throws JSONException
JSONException
java.lang.String format(JSONCompoundType jsonCompound) throws JSONException
JSONException
java.lang.String format(java.lang.Object jsonValue) throws JSONException
JSONException
void format(java.io.OutputStream out, JSONObject jsonObject) throws JSONException
JSONException
void format(java.io.OutputStream out, JSONArray jsonArray) throws JSONException
JSONException
void format(java.io.OutputStream out, JSONCompoundType jsonCompound) throws JSONException
JSONException
void format(java.io.OutputStream out, java.lang.Object jsonValue) throws JSONException
JSONException