A line demux transform pipeline item is a demupltiplexer that takes a character stream as input and generates a sequence of character streams as output. In order to facilitate a custom transform of the character stream, the user has to specify in a JSR-223 compliant script, the implementation of the following functions:
public abstract String transformLine(String line); public abstract boolean shouldChangePipeline();
The transformLine()
method will be called each time a line is read
in order for the script implementation to transform it as needed. The additional
shouldChangePipeline
method should return true, when
the boundaries of one result stream has been reached and another should be started.
The transformLine()
method is going to be called with a line
parameter of null
when the end of the input stream is reached.