public class JsonStreamWriter extends Object
| Constructor and Description |
|---|
JsonStreamWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
JsonStreamWriter |
beginArray() |
JsonStreamWriter |
beginObject() |
JsonStreamWriter |
endArray() |
JsonStreamWriter |
endObject() |
protected void |
escape(String value)
Writes the JSON-escaped form of a Java String value according to RFC 4627.
|
JsonStreamWriter |
name(String name) |
JsonStreamWriter |
namedStringValue(String name,
String value) |
JsonStreamWriter |
namedStringValueRaw(String name,
String value) |
JsonStreamWriter |
separator() |
JsonStreamWriter |
stringValue(String value) |
JsonStreamWriter |
stringValueRaw(String value) |
JsonStreamWriter |
unquotedValue(String value) |
public JsonStreamWriter(Writer writer)
public JsonStreamWriter beginObject() throws IOException
IOExceptionpublic JsonStreamWriter endObject() throws IOException
IOExceptionpublic JsonStreamWriter beginArray() throws IOException
IOExceptionpublic JsonStreamWriter endArray() throws IOException
IOExceptionpublic JsonStreamWriter name(String name) throws IOException
IOExceptionpublic JsonStreamWriter unquotedValue(String value) throws IOException
IOExceptionpublic JsonStreamWriter stringValueRaw(String value) throws IOException
IOExceptionpublic JsonStreamWriter stringValue(String value) throws IOException
IOExceptionpublic JsonStreamWriter namedStringValueRaw(String name, String value) throws IOException
IOExceptionpublic JsonStreamWriter namedStringValue(String name, String value) throws IOException
IOExceptionpublic JsonStreamWriter separator() throws IOException
IOExceptionprotected void escape(String value) throws IOException
value - the Java StringIOException - if an I/O error occursCopyright © 2020. All rights reserved.