Java output plugin : How to encode values using existing codec

Writing java output plugin and need to convert values into the user-specified codec. Maybe JSON, AVRO.
Question is can I use existing ruby written codec or need to create my own?
Even if we have written java codec then how we can use into output java plugin?

sample code

public void output(final Collection<Event> events) {
     Iterator<Event> z = events.iterator();
      while (z.hasNext() && !stopped) {
             //How to use existing or newly created java codec here. Ex. Json, Avro

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.