open static fun writeLines(lines: MutableCollection<Any?>!, lineEnding: String!, output: OutputStream!): Unit
Writes the toString() value of each item in a collection to an OutputStream line by line, using the default character encoding of the platform and the specified line ending.
lines - MutableCollection<Any?>!: the lines to write, null entries produce blank lines
lineEnding - String!: the line separator to use, null is system default
output - OutputStream!: the OutputStream to write to, not null, not closed
NullPointerException - if the output is null
IOException - if an I/O error occurs
Since
Commons IO 1.1
open static fun writeLines(lines: MutableCollection<Any?>!, lineEnding: String!, output: OutputStream!, encoding: String!): Unit
Writes the toString() value of each item in a collection to an OutputStream line by line, using the specified character encoding and the specified line ending.
Character encoding names can be found at IANA.
lines - MutableCollection<Any?>!: the lines to write, null entries produce blank lines
lineEnding - String!: the line separator to use, null is system default
output - OutputStream!: the OutputStream to write to, not null, not closed
encoding - String!: the encoding to use, null means platform default
NullPointerException - if the output is null
IOException - if an I/O error occurs
Since
Commons IO 1.1
open static fun writeLines(lines: MutableCollection<Any?>!, lineEnding: String!, writer: Writer!): Unit
Writes the toString() value of each item in a collection to a Writer line by line, using the specified line ending.
lines - MutableCollection<Any?>!: the lines to write, null entries produce blank lines
lineEnding - String!: the line separator to use, null is system default
writer - Writer!: the Writer to write to, not null, not closed
NullPointerException - if the input is null
IOException - if an I/O error occurs
Since
Commons IO 1.1