booster / com.didiglobal.booster.kotlinx / java.io.InputStream

Extensions for java.io.InputStream

head

Returns the first line of input stream

fun InputStream.head(): String?

redirect

Redirect this input stream to the specified file

fun InputStream.redirect(file: File): Long