Interface JsonWriterGson
- All Superinterfaces:
Flushable,ObjectNotationWriter<String,,com.google.gson.JsonPrimitive> ObjectNotationWriterExt<String,com.google.gson.JsonPrimitive, JsonWriterGson>
- All Known Implementing Classes:
JsonWriterAdapter
public interface JsonWriterGson
extends ObjectNotationWriterExt<String,com.google.gson.JsonPrimitive,JsonWriterGson>
The motivation for this abstraction was to have a JsonWriter which can assemble JsonObjects.
It turns out that guava has the JsonTreeWriter (an internal but public class) which does the job.
-
Method Summary
Methods inherited from interface org.aksw.jenax.io.json.writer.ObjectNotationWriterExt
beginArray, beginObject, endArray, endObject, name, nullValue
-
Method Details
-
value
Description copied from interface:ObjectNotationWriterWrite a primitive value (should exclude null)- Specified by:
valuein interfaceObjectNotationWriter<String,com.google.gson.JsonPrimitive> - Specified by:
valuein interfaceObjectNotationWriterExt<String,com.google.gson.JsonPrimitive, JsonWriterGson> - Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
toJson
Extension- Throws:
IOException
-