public class JsonSinkWriter<T> extends java.lang.Object implements SinkWriter<T,java.lang.Appendable>
| Constructor and Description |
|---|
JsonSinkWriter()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.lang.Appendable sink,
T body)
Writes a value to a data sink.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waituncheckedWritepublic void write(java.lang.Appendable sink,
T body)
throws com.google.gson.JsonIOException
SinkWriterwrite in interface SinkWriter<T,java.lang.Appendable>sink - where to write the value to.body - the data to write.com.google.gson.JsonIOException