Class OutputStreamWithJsonWriter
java.lang.Object
java.io.OutputStream
org.nuxeo.ecm.core.io.marshallers.json.OutputStreamWithJsonWriter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
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
-
Constructor Summary
ConstructorDescriptionOutputStreamWithJsonWriter
(com.fasterxml.jackson.core.JsonGenerator jsonGenerator) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
OutputStreamWithJsonWriter
public OutputStreamWithJsonWriter(com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
-
-
Method Details
-
getJsonGenerator
public com.fasterxml.jackson.core.JsonGenerator getJsonGenerator() -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-