com.google.gson.internal
Class Streams
java.lang.Object
com.google.gson.internal.Streams
public final class Streams
- extends Object
Reads and writes GSON parse trees over streams.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Streams
public Streams()
parse
public static JsonElement parse(JsonReader reader)
throws JsonParseException
- Takes a reader in any state and returns the next value as a JsonElement.
- Throws:
JsonParseException
write
public static void write(JsonElement element,
JsonWriter writer)
throws IOException
- Writes the JSON element to the writer, recursively.
- Throws:
IOException
writerForAppendable
public static Writer writerForAppendable(Appendable appendable)
Copyright © 2012. All Rights Reserved.