public class JsonStream extends Object implements AutoCloseable
| Constructor and Description |
|---|
JsonStream(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
JsonStream |
put(String key,
boolean value) |
JsonStream |
put(String key,
Collection<?> value) |
JsonStream |
put(String key,
double value) |
JsonStream |
put(String key,
float value) |
JsonStream |
put(String key,
int value) |
JsonStream |
put(String key,
com.opensymphony.webwork.dispatcher.json.JSONObject value) |
JsonStream |
put(String key,
long value) |
JsonStream |
put(String key,
Map value) |
JsonStream |
put(@NotNull String key,
@NotNull Object value) |
JsonStream |
putIfNotNull(@NotNull String key,
@Nullable Object value) |
void |
writeArrayFieldStart(String fieldName) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeStartObject() |
public JsonStream(Writer writer) throws IOException
IOExceptionpublic void writeArrayFieldStart(String fieldName) throws IOException
IOExceptionpublic void writeStartObject()
throws IOException
IOExceptionpublic void writeEndObject()
throws IOException
IOExceptionpublic void writeEndArray()
throws IOException
IOExceptionpublic JsonStream put(String key, boolean value) throws IOException
IOExceptionpublic JsonStream put(String key, int value) throws IOException
IOExceptionpublic JsonStream put(String key, long value) throws IOException
IOExceptionpublic JsonStream put(String key, float value) throws IOException
IOExceptionpublic JsonStream put(String key, double value) throws IOException
IOExceptionpublic JsonStream putIfNotNull(@NotNull @NotNull String key, @Nullable @Nullable Object value) throws IOException
IOExceptionpublic JsonStream put(@NotNull @NotNull String key, @NotNull @NotNull Object value) throws IOException
IOExceptionpublic JsonStream put(String key, com.opensymphony.webwork.dispatcher.json.JSONObject value) throws IOException
IOExceptionpublic JsonStream put(String key, Collection<?> value) throws IOException
IOExceptionpublic JsonStream put(String key, Map value) throws IOException
IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.