public final class Streams
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Streams.AppendableWriter
Adapts an
Appendable so it can be passed anywhere a Writer
is used. |
Modifier | Constructor and Description |
---|---|
private |
Streams() |
Modifier and Type | Method and Description |
---|---|
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) |
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)