Class RemoveNewLinesMapper
java.lang.Object
org.jpos.util.function.RemoveNewLinesMapper
- All Implemented Interfaces:
Function<byte[],byte[]>, Configurable, ByteArrayMapper
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:
NB. Do not set combine-spaces to true if you have data where spaces are significant.
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
-
Constructor Details
-
RemoveNewLinesMapper
public RemoveNewLinesMapper()
-
-
Method Details
-
apply
-
setConfiguration
- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException
-