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 TGJsonWriter
java.io.IOException
public TGJsonWriter beginObject() throws java.io.IOException
beginObject
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter endArray() throws java.io.IOException
endArray
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter endObject() throws java.io.IOException
endObject
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter name(java.lang.String name) throws java.io.IOException
name
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter value(boolean value) throws java.io.IOException
value
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter value(double value) throws java.io.IOException
value
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter value(long value) throws java.io.IOException
value
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter value(java.lang.Number value) throws java.io.IOException
value
in interface TGJsonWriter
java.io.IOException
public TGJsonWriter value(java.lang.String value) throws java.io.IOException
value
in interface TGJsonWriter
java.io.IOException