public class TGGsonStreamWriter extends java.lang.Object implements TGJsonWriter
| Constructor and Description |
|---|
TGGsonStreamWriter(com.google.gson.stream.JsonWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
TGJsonWriter |
beginArray() |
TGJsonWriter |
beginObject() |
static TGGsonStreamWriter |
create(java.io.PrintWriter pw)
Convenience method for creating a new instance of the writer fully
configured for Gson using default settings and the supplied print writer
for output.
|
TGJsonWriter |
endArray() |
TGJsonWriter |
endObject() |
TGJsonWriter |
name(java.lang.String name) |
TGJsonWriter |
value(boolean value) |
TGJsonWriter |
value(double value) |
TGJsonWriter |
value(long value) |
TGJsonWriter |
value(java.lang.Number value) |
TGJsonWriter |
value(java.lang.String value) |
public TGGsonStreamWriter(com.google.gson.stream.JsonWriter writer)
public static TGGsonStreamWriter create(java.io.PrintWriter pw)
pw - public TGJsonWriter beginArray() throws java.io.IOException
beginArray in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter beginObject() throws java.io.IOException
beginObject in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter endArray() throws java.io.IOException
endArray in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter endObject() throws java.io.IOException
endObject in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter name(java.lang.String name) throws java.io.IOException
name in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter value(boolean value) throws java.io.IOException
value in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter value(double value) throws java.io.IOException
value in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter value(long value) throws java.io.IOException
value in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter value(java.lang.Number value) throws java.io.IOException
value in interface TGJsonWriterjava.io.IOExceptionpublic TGJsonWriter value(java.lang.String value) throws java.io.IOException
value in interface TGJsonWriterjava.io.IOException