Class GraphQlResultWriterImpl
java.lang.Object
org.aksw.jenax.graphql.impl.common.GraphQlResultWriterImpl
Writes out the data streams of a GraphQlExec to the an OutputStream.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.GsongetGson()voidwrite(com.google.gson.stream.JsonWriter writer, GraphQlExec exec) voidwrite(OutputStream out, GraphQlExec exec) Wraps the output stream with a json writer.
-
Field Details
-
gson
protected com.google.gson.Gson gson
-
-
Constructor Details
-
GraphQlResultWriterImpl
protected GraphQlResultWriterImpl(com.google.gson.Gson gson)
-
-
Method Details
-
getGson
public com.google.gson.Gson getGson() -
write
Wraps the output stream with a json writer. Always flushes the writer on completion.- Throws:
IOException
-
write
- Throws:
IOException
-