public class JsonStream extends JsonWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
JsonStream.Streamable |
| Modifier and Type | Method and Description |
|---|---|
JsonStream |
name(java.lang.String name)
Encodes the property name.
|
void |
value(java.io.File file)
Writes a File (its content) into the stream
|
void |
value(JsonStream.Streamable streamable)
This gives the Streamable the JsonStream instance and
allows lets it write itself into the stream.
|
beginArray, beginObject, close, endArray, endObject, flush, getSerializeNulls, isHtmlSafe, isLenient, nullValue, setHtmlSafe, setIndent, setLenient, setSerializeNulls, value, value, value, value, value, valuepublic JsonStream name(java.lang.String name) throws java.io.IOException
JsonWritername in class JsonWritername - the name of the forthcoming value. May not be null.java.io.IOExceptionpublic void value(JsonStream.Streamable streamable) throws java.io.IOException
java.io.IOExceptionpublic void value(java.io.File file)
throws java.io.IOException
java.io.IOException