Byte iterator only available for buffered input streams,

InputStream.buffered() returns BufferedInputStream.
This commit is contained in:
Ilya Gorbunov
2015-11-23 15:29:42 +03:00
parent c848ebdc52
commit 229504f42d
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class OldStdlibTest() {
x [index] = index.toByte()
}
x.inputStream().use { stream ->
x.inputStream().buffered().use { stream ->
for(b in stream) {
println(b)
}