A byte transform pipeline item takes a byte stream as input and generates a byte stream as output. In order to facilitate a custom transform of the byte stream, the user has to specify in a JSR-223 compliant script, the implementation of the following function:
public abstract byte[] transformBuffer(byte[] buffer, int offset, int length);
This will be called once for each buffer being read from the source byte stream. When
the source byte stream is complete, this function will be called once more with a
length
parameter of -1
.