public static ClickHouseInputStream of(ClickHouseDeferredValue<InputStream> deferredInput, int bufferSize,
            Runnable postCloseAction) {
        return new WrappedInputStream(null, new DeferredInputStream(deferredInput), bufferSize, postCloseAction); // NOSONAR
    }
Wraps the deferred input stream.

@param deferredInput   non-null deferred input stream
@param bufferSize      buffer size which is always greater than zero(usually
                       4096 or larger)
@param postCloseAction custom action will be performed right after closing
                       the input stream
@return wrapped input
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseInputStream.java