static ClickHouseOutputStream wrap(ClickHousePassThruStream stream, OutputStream output, int bufferSize,
            ClickHouseCompression compression, int compressionLevel, Runnable postCloseAction) {
        return ClickHouseCompressionAlgorithm.createOutputStream(stream, output, bufferSize, compression,
                compressionLevel, postCloseAction);
    }
Wraps the given output stream.

@param stream           pass-thru stream, could be null
@param output           non-null output stream
@param bufferSize       buffer size
@param compression      compression algorithm
@param compressionLevel compression level
@param postCloseAction  custom action will be performed right after closing
                        the wrapped output stream
@return non-null wrapped output stream
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseOutputStream.java