JSONStringer instead.@Deprecated public class JSONWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected char |
mode
Deprecated.
|
protected Writer |
writer
Deprecated.
|
| Constructor and Description |
|---|
JSONWriter()
Deprecated.
|
JSONWriter(Writer w)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JSONWriter |
array()
Deprecated.
|
JSONWriter |
endArray()
Deprecated.
|
JSONWriter |
endObject()
Deprecated.
|
JSONWriter |
key(String string)
Deprecated.
|
JSONWriter |
object()
Deprecated.
|
JSONWriter |
value(boolean b)
Deprecated.
|
JSONWriter |
value(double d)
Deprecated.
|
JSONWriter |
value(long l)
Deprecated.
|
JSONWriter |
value(Object object)
Deprecated.
|
protected char mode
protected Writer writer
public JSONWriter()
public JSONWriter(Writer w)
public JSONWriter array() throws JSONException
JSONExceptionpublic JSONWriter endArray() throws JSONException
JSONExceptionpublic JSONWriter endObject() throws JSONException
JSONExceptionpublic JSONWriter key(String string) throws JSONException
JSONExceptionpublic JSONWriter object() throws JSONException
JSONExceptionpublic JSONWriter value(boolean b) throws JSONException
JSONExceptionpublic JSONWriter value(double d) throws JSONException
JSONExceptionpublic JSONWriter value(long l) throws JSONException
JSONExceptionpublic JSONWriter value(Object object) throws JSONException
JSONExceptionCopyright © 2006–2021 Apache Software Foundation. All rights reserved.