@Override
    public String toString() {
        String bufStr = new String(buf, StandardCharsets.UTF_8).trim();

        return "StreamSplitter{" + "delegate=" + delegate + ", sep=" + sep + ", buf=" + bufStr + ", posRead=" + posRead
                + ", posNext=" + posNext + ", readOnce=" + readOnce + '}';
    }
We have a stream of bytes and a separator as an input. We split the stream by
the separator and pass the byte arrays to output.
clickhouse-data/src/main/java/com/clickhouse/data/format/tsv/StreamSplitter.java