All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugsnag.android.gradle.internal.IOUtil.kt Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
package com.bugsnag.android.gradle.internal

import okio.buffer
import okio.gzip
import okio.sink
import okio.source
import java.io.File
import java.io.InputStream

/**
 * Outputs the contents of stdout into the gzip file output file
 *
 * @param stdout The input stream
 * @param outputFile The output file
 * included in the output file or not
 */
internal fun outputZipFile(stdout: InputStream, outputFile: File) {
    stdout.source().use { source ->
        outputFile.sink().gzip().buffer().use { gzipSink ->
            gzipSink.writeAll(source)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy