BufferedWriter.Write(Char[], Int32, Int32) Method

Definition

Writes a portion of an array of characters.

[Android.Runtime.Register("write", "([CII)V", "GetWrite_arrayCIIHandler")]
public override void Write (char[]? cbuf, int off, int len);
[<Android.Runtime.Register("write", "([CII)V", "GetWrite_arrayCIIHandler")>]
override this.Write : char[] * int * int -> unit

Parameters

cbuf
Char[]

A character array

off
Int32

Offset from which to start reading characters

len
Int32

Number of characters to write

Attributes

Exceptions

if offset or count , or if offset + count is greater than the size of buffer.

if this writer is closed or another I/O error occurs.

Remarks

Writes a portion of an array of characters.

Ordinarily this method stores characters from the given array into this stream's buffer, flushing the buffer to the underlying stream as needed. If the requested length is at least as large as the buffer, however, then this method will flush the buffer and write the characters directly to the underlying stream. Thus redundant BufferedWriters will not copy data unnecessarily.

Java documentation for java.io.BufferedWriter.write(char[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to