13 lines
298 B
Kotlin
Vendored
13 lines
298 B
Kotlin
Vendored
import java.io.ByteArrayInputStream
|
|
import java.io.IOException
|
|
|
|
class C {
|
|
@Throws(IOException::class)
|
|
internal fun foo() {
|
|
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
|
// reading something
|
|
val c = stream.read()
|
|
println(c)
|
|
}
|
|
}
|
|
} |