Package com.atlassian.bamboo.struts
Class JsonStream
java.lang.Object
com.atlassian.bamboo.struts.JsonStream
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
put
(String key, Collection<?> value) putIfNotNull
(@NotNull String key, @Nullable Object value) void
writeArrayFieldStart
(String fieldName) void
void
void
-
Constructor Details
-
JsonStream
- Throws:
IOException
-
-
Method Details
-
writeArrayFieldStart
- Throws:
IOException
-
writeStartObject
- Throws:
IOException
-
writeEndObject
- Throws:
IOException
-
writeEndArray
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
putIfNotNull
public JsonStream putIfNotNull(@NotNull @NotNull String key, @Nullable @Nullable Object value) throws IOException - Throws:
IOException
-
put
public JsonStream put(@NotNull @NotNull String key, @NotNull @NotNull Object value) throws IOException - Throws:
IOException
-
put
public JsonStream put(String key, com.opensymphony.webwork.dispatcher.json.JSONObject value) throws IOException - Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-