Class RemoveNewLinesMapper

java.lang.Object
org.jpos.util.function.RemoveNewLinesMapper
All Implemented Interfaces:
Function<byte[],byte[]>, Configurable, ByteArrayMapper

public class RemoveNewLinesMapper extends 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:
        invalid input: '<'output-mapper class="org.jpos.util.function.RemoveNewLinesMapper">
            
            invalid input: '<'properties name="newline-at-end" value="false/>
        invalid input: '<'/output-mapper>
    

NB. Do not set combine-spaces to true if you have data where spaces are significant.
Since:
2.1.4