Interface NodeWriter<Event>

Type Parameters:
Event - - type of the event (ILoggingEvent, IAccessEvent)
All Known Implementing Classes:
AbstractJsonPatternParser.ArrayWriter, AbstractJsonPatternParser.ObjectWriter, AbstractJsonPatternParser.ValueWriter

public interface NodeWriter<Event>
Writes a JSON pattern node into JSON generator supplied.
Author:
Dmitry Andrianov
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(JsonGenerator generator, Event event)
    Writes this node to the given generator.
  • Method Details

    • write

      void write(JsonGenerator generator, Event event) throws IOException
      Writes this node to the given generator.
      Parameters:
      generator - the generator to which to write the node
      event - the event from which to get data to write
      Throws:
      IOException - if an I/O error occurs