Constructor and Description |
---|
JSONWriter(Writer pw) |
Modifier and Type | Method and Description |
---|---|
JSONWriter |
array() |
JSONWriter |
endArray() |
JSONWriter |
endObject() |
void |
flush() |
JSONWriter |
key(String key) |
JSONWriter |
object() |
JSONWriter |
value(boolean b) |
JSONWriter |
value(double d) |
JSONWriter |
value(int i) |
JSONWriter |
value(long l) |
JSONWriter |
value(Object value) |
public JSONWriter(Writer pw)
public JSONWriter object() throws IOException
IOException
public JSONWriter endObject() throws IOException
IOException
public JSONWriter array() throws IOException
IOException
public JSONWriter endArray() throws IOException
IOException
public JSONWriter key(String key) throws IOException
IOException
public JSONWriter value(boolean b) throws IOException
IOException
public JSONWriter value(double d) throws IOException
IOException
public JSONWriter value(int i) throws IOException
IOException
public JSONWriter value(long l) throws IOException
IOException
public JSONWriter value(Object value) throws IOException
IOException
public void flush() throws IOException
IOException
Writer.flush()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.