android-components / mozilla.components.concept.fetch / Response / Body / useBufferedReader

useBufferedReader

fun <R> useBufferedReader(charset: Charset = Charsets.UTF_8, block: (BufferedReader) -> R): R (source)

Creates a buffered reader from this body.

Executes the given block function with the buffered reader as parameter and then closes it down correctly whether an exception is thrown or not.