java.lang.Objectcom.google.gson.internal.Streams
public final class Streams
Reads and writes GSON parse trees over streams.
Constructor Summary | |
---|---|
Streams()
|
Method Summary | |
---|---|
static JsonElement |
parse(JsonReader reader)
Takes a reader in any state and returns the next value as a JsonElement. |
static void |
write(JsonElement element,
JsonWriter writer)
Writes the JSON element to the writer, recursively. |
static java.io.Writer |
writerForAppendable(java.lang.Appendable appendable)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Streams()
Method Detail |
---|
public static JsonElement parse(JsonReader reader) throws JsonParseException
JsonParseException
public static void write(JsonElement element, JsonWriter writer) throws java.io.IOException
java.io.IOException
public static java.io.Writer writerForAppendable(java.lang.Appendable appendable)