RichUtils / pyxis.uzuki.live.richutilskt.utils / java.io.InputStream

Extensions for java.io.InputStream

getString

fun InputStream.getString(): String

get response string from InputStream

outAsBitmap

fun InputStream.outAsBitmap(): Bitmap?

get Bitmap from InputStream

outAsFile

fun InputStream.outAsFile(file: File): File

write file from InputStream