Search in sources :

Example 1 with OrgJsonOutput

use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializer.OrgJsonOutput in project qi4j-sdk by Qi4j.

the class OrgJsonValueSerializer method adaptOutput.

//
// Serialization
//
@Override
protected OrgJsonOutput adaptOutput(OutputStream output) throws Exception {
    Writer writer = new OutputStreamWriter(output, "UTF-8");
    JSONWriter json = new JSONWriter(writer);
    return new OrgJsonOutput(writer, json);
}
Also used : JSONWriter(org.json.JSONWriter) OrgJsonOutput(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializer.OrgJsonOutput) OutputStreamWriter(java.io.OutputStreamWriter) Writer(java.io.Writer) OutputStreamWriter(java.io.OutputStreamWriter) JSONWriter(org.json.JSONWriter)

Aggregations

OutputStreamWriter (java.io.OutputStreamWriter)1 Writer (java.io.Writer)1 JSONWriter (org.json.JSONWriter)1 OrgJsonOutput (org.qi4j.valueserialization.orgjson.OrgJsonValueSerializer.OrgJsonOutput)1