Class StreamIntrospectionJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<StreamIntrospection>
org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionJsonWriter
- All Implemented Interfaces:
Marshaller<StreamIntrospection>,Writer<StreamIntrospection>
@Setup(mode=SINGLETON,
priority=2000)
public class StreamIntrospectionJsonWriter
extends AbstractJsonWriter<StreamIntrospection>
- Since:
- 2025.12
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwrite(StreamIntrospection.EmptyTimerMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.Metric metric, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.Metrics metrics, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.ProcessorComputation computation, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.ProcessorMetadata metadata, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.Processor processor, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.TimerMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(StreamIntrospection.ValueMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) voidwrite(StreamIntrospection entity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to writes the entity in the providedJsonGenerator.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
StreamIntrospectionJsonWriter
public StreamIntrospectionJsonWriter()
-
-
Method Details
-
write
public void write(StreamIntrospection entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:AbstractJsonWriterImplement this method to writes the entity in the providedJsonGenerator.This method implementation can use injected properties.
The
JsonGenerator's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the providedJsonGenerator. It may be used is another marshaller calling this one.- Specified by:
writein classAbstractJsonWriter<StreamIntrospection>- Parameters:
entity- The entity to marshall as Json.jg- TheJsonGeneratorused to produce Json output.- Throws:
IOException
-
write
protected void write(StreamIntrospection.Processor processor, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.ProcessorMetadata metadata, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.ProcessorComputation computation, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.Metrics metrics, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.Metric metric, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.ValueMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.EmptyTimerMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(StreamIntrospection.TimerMetric metric, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-