write

Writes bytes from a byte[] to an OutputStream.

Parameters

data

the byte array to write, do not modify during output, null ignored

output

the OutputStream to write to

open fun write(data: Array<Byte>, output: OutputStream)

Writes bytes from a byte[] to chars on a Writer using the default character encoding of the platform.

This method uses String .

Parameters

data

the byte array to write, do not modify during output, null ignored

output

the Writer to write to

open fun write(data: Array<Byte>, output: Writer)

Writes bytes from a byte[] to chars on a Writer using the specified character encoding.

Character encoding names can be found at IANA.

This method uses String .

Parameters

data

the byte array to write, do not modify during output, null ignored

encoding

the encoding to use, null means platform default

output

the Writer to write to

open fun write(data: Array<Byte>, output: Writer, encoding: String)

Writes chars from a char[] to a Writer using the default character encoding of the platform.

Parameters

data

the char array to write, do not modify during output, null ignored

output

the Writer to write to

open fun write(data: Array<Char>, output: Writer)

Writes chars from a char[] to bytes on an OutputStream.

This method uses String and getBytes .

Parameters

data

the char array to write, do not modify during output, null ignored

output

the OutputStream to write to

open fun write(data: Array<Char>, output: OutputStream)

Writes chars from a char[] to bytes on an OutputStream using the specified character encoding.

Character encoding names can be found at IANA.

This method uses String and getBytes .

Parameters

data

the char array to write, do not modify during output, null ignored

encoding

the encoding to use, null means platform default

output

the OutputStream to write to

open fun write(data: Array<Char>, output: OutputStream, encoding: String)

Writes chars from a String to a Writer.

Parameters

data

the String to write, null ignored

output

the Writer to write to

open fun write(data: String, output: Writer)

Writes chars from a String to bytes on an OutputStream using the default character encoding of the platform.

This method uses getBytes .

Parameters

data

the String to write, null ignored

output

the OutputStream to write to

open fun write(data: String, output: OutputStream)

Writes chars from a String to bytes on an OutputStream using the specified character encoding.

Character encoding names can be found at IANA.

This method uses getBytes .

Parameters

data

the String to write, null ignored

encoding

the encoding to use, null means platform default

output

the OutputStream to write to

open fun write(data: String, output: OutputStream, encoding: String)

Writes chars from a StringBuffer to a Writer.

Parameters

data

the StringBuffer to write, null ignored

output

the Writer to write to

open fun write(data: StringBuffer, output: Writer)

Writes chars from a StringBuffer to bytes on an OutputStream using the default character encoding of the platform.

This method uses getBytes .

Parameters

data

the StringBuffer to write, null ignored

output

the OutputStream to write to

open fun write(data: StringBuffer, output: OutputStream)

Writes chars from a StringBuffer to bytes on an OutputStream using the specified character encoding.

Character encoding names can be found at IANA.

This method uses getBytes .

Parameters

data

the StringBuffer to write, null ignored

encoding

the encoding to use, null means platform default

output

the OutputStream to write to

open fun write(data: StringBuffer, output: OutputStream, encoding: String)