public static ClickHouseInputStream of(ClickHouseWriter writer) {
        return new DelegatedInputStream(null, writer);
    }
Creates an input stream using the given customer writer. Behind the scene, a
piped stream will be created, writer will be called in a separate worker
thread for writing.

@param writer non-null customer writer
@return wrapped input
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseInputStream.java