write

open override fun write(str: String)

Writes a string. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.

Parameters

str

String to be written


open override fun write(cbuf: CharArray, off: Int, len: Int)

Writes a portion of an array of characters.

Parameters

cbuf

Array of characters

off

Offset from which to start writing characters

len

Number of characters to write

Throws

Implementations should throw this exception if off is negative, or len is negative, or off + len is negative or greater than the length of the given array

IOException

If an I/O error occurs