@Override
    public void write(final char[] cbuf, final int off, final int len) {
        if ((off < 0) || (off > cbuf.length) || (len < 0) || ((off + len) > cbuf.length) || ((off + len) < 0)) {
            throw new IndexOutOfBoundsException();
        } else if (len == 0) {
            return;
        }
        sb.append(cbuf, off, len);
    }
Write a portion of an array of characters.

@param cbuf Array of characters
@param off  Offset from which to start writing characters
@param len  Number of characters to write
stroom-pipeline/src/main/java/stroom/pipeline/writer/CharBufferWriter.java