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
ConstructorsConstructorDescriptionOutputStreamWithJsonWriter(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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-