protected static class AbstractJsonPatternParser.ObjectWriter<Event> extends Object implements NodeWriter<Event>
Modifier | Constructor and Description |
---|---|
protected |
ObjectWriter() |
Modifier and Type | Method and Description |
---|---|
void |
addField(String fieldName,
NodeWriter<Event> fieldValue) |
void |
write(JsonGenerator generator,
Event event)
Writes this node to the given generator.
|
protected void |
writeFields(JsonGenerator generator,
Event event) |
public void addField(String fieldName, NodeWriter<Event> fieldValue)
public void write(JsonGenerator generator, Event event) throws IOException
NodeWriter
write
in interface NodeWriter<Event>
generator
- the generator to which to write the nodeevent
- the event from which to get data to writeIOException
- if an I/O error occursprotected void writeFields(JsonGenerator generator, Event event) throws IOException
IOException
Copyright © 2013–2022. All rights reserved.