buffered

inline fun InputStream.buffered(bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedInputStream(source)

Creates a buffered input stream wrapping this stream.

Since Kotlin

1.0

Parameters

bufferSize

the buffer size to use.


inline fun OutputStream.buffered(bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedOutputStream(source)

Creates a buffered output stream wrapping this stream.

Since Kotlin

1.0

Parameters

bufferSize

the buffer size to use.


inline fun Reader.buffered(bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedReader(source)

Returns a buffered reader wrapping this Reader, or this Reader itself if it is already buffered.

Since Kotlin

1.0

inline fun Writer.buffered(bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedWriter(source)

Returns a buffered writer wrapping this Writer, or this Writer itself if it is already buffered.

Since Kotlin

1.0