Class JsonWriterAdapter
- java.lang.Object
-
- jetbrains.buildServer.web.statistics.graph.JsonWriterAdapter
-
public class JsonWriterAdapter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JsonWriterAdapter.WriterTask
-
Constructor Summary
Constructors Constructor Description JsonWriterAdapter(com.google.gson.stream.JsonWriter jsonWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
array(String name, JsonWriterAdapter.WriterTask task)
void
array(JsonWriterAdapter.WriterTask task)
com.google.gson.stream.JsonWriter
getJsonWriter()
void
object(String name, JsonWriterAdapter.WriterTask task)
void
object(JsonWriterAdapter.WriterTask task)
JsonWriterAdapter
value(Number value)
JsonWriterAdapter
value(String value)
JsonWriterAdapter
value(String name, boolean value)
JsonWriterAdapter
value(String name, Number value)
JsonWriterAdapter
value(String name, String value)
-
-
-
Method Detail
-
object
public void object(@NotNull String name, @NotNull JsonWriterAdapter.WriterTask task) throws IOException
- Throws:
IOException
-
object
public void object(@NotNull JsonWriterAdapter.WriterTask task) throws IOException
- Throws:
IOException
-
array
public void array(@NotNull String name, @NotNull JsonWriterAdapter.WriterTask task) throws IOException
- Throws:
IOException
-
array
public void array(@NotNull JsonWriterAdapter.WriterTask task) throws IOException
- Throws:
IOException
-
value
public JsonWriterAdapter value(@Nullable Number value) throws IOException
- Throws:
IOException
-
value
public JsonWriterAdapter value(@Nullable String value) throws IOException
- Throws:
IOException
-
value
public JsonWriterAdapter value(@NotNull String name, @Nullable Number value) throws IOException
- Throws:
IOException
-
value
public JsonWriterAdapter value(@NotNull String name, @Nullable String value) throws IOException
- Throws:
IOException
-
value
public JsonWriterAdapter value(@NotNull String name, boolean value) throws IOException
- Throws:
IOException
-
getJsonWriter
@NotNull public com.google.gson.stream.JsonWriter getJsonWriter()
-
-