Class RemoveNewLinesMapper

  • All Implemented Interfaces:
    java.util.function.Function<byte[],​byte[]>, Configurable, ByteArrayMapper

    public class RemoveNewLinesMapper
    extends java.lang.Object
    implements ByteArrayMapper, Configurable
    Mapper for removing newlines from the output of writing LogEvents to a stream. Configuration options allow you to optionally combine multiple spaces into a single space and opting not to add a newline at the end of the data. Example:
             
                 
                 Since:
    
    2.1.4
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] apply​(byte[] bytes)  
      void setConfiguration​(Configuration cfg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose