fun InputStream.buffered( bufferSize: Int = DEFAULT_BUFFER_SIZE ): BufferedInputStream Creates a buffered input stream wrapping this stream. | |
fun InputStream.bufferedReader( charset: Charset = Charsets.UTF_8 ): BufferedReader Creates a buffered reader on this input stream using UTF-8 or the specified charset. | |
fun InputStream.copyTo( out: OutputStream, bufferSize: Int = DEFAULT_BUFFER_SIZE ): Long Copies this stream to the given output stream, returning the number of bytes copied | |
fun InputStream.readBytes( estimatedSize: Int = DEFAULT_BUFFER_SIZE ): ByteArray Reads this stream completely into a byte array. | |
fun InputStream.reader( charset: Charset = Charsets.UTF_8 ): InputStreamReader Creates a reader on this input stream using UTF-8 or the specified charset. |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/java.io.-input-stream/index.html