Class DummyEncoder<E>

All Implemented Interfaces:
Encoder<E>, ContextAware, LifeCycle

public class DummyEncoder<E> extends EncoderBase<E>
  • Field Details

  • Constructor Details

  • Method Details

    • getCharset

      public Charset getCharset()
    • setCharset

      public void setCharset(Charset charset)
    • encode

      public byte[] encode(E event)
      Description copied from interface: Encoder
      Encode an event as bytes.
      Parameters:
      event -
    • headerBytes

      public byte[] headerBytes()
      Description copied from interface: Encoder
      Get header bytes. This method is typically called upon opening of an output stream.
      Returns:
      header bytes. Null values are allowed.
    • footerBytes

      public byte[] footerBytes()
      Description copied from interface: Encoder
      Get footer bytes. This method is typically called prior to the closing of the stream where events are written.
      Returns:
      footer bytes. Null values are allowed.
    • getFileHeader

    • setFileHeader

      public void setFileHeader(String fileHeader)
    • getFileFooter

    • setFileFooter

      public void setFileFooter(String fileFooter)