Class OutputStreamWithJsonWriter

java.lang.Object
java.io.OutputStream
org.nuxeo.ecm.core.io.marshallers.json.OutputStreamWithJsonWriter
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class OutputStreamWithJsonWriter extends OutputStream
This OutputStream is a technical wrapper for JsonGenerator. It's used to broadcast a JsonGenerator between marshallers.

take a look at AbstractJsonWriter.getGenerator(OutputStream, boolean) to understand the mechanism.

Since:
7.2