Writer.Write Writer.Write Method

Definition

Overloads

Write(Char[]) Write(Char[])

Writes the entire character buffer buf to the target.

Write(Int32) Write(Int32)

Writes one character to the target.

Write(String) Write(String)

Writes the characters from the specified string to the target.

Write(Char[], Int32, Int32) Write(Char[], Int32, Int32)

Writes count characters starting at offset in buf to the target.

Write(String, Int32, Int32) Write(String, Int32, Int32)

Writes count characters from str starting at offset to the target.

Write(Char[]) Write(Char[])

Writes the entire character buffer buf to the target.

[Android.Runtime.Register("write", "([C)V", "GetWrite_arrayCHandler")]
public virtual void Write (char[] cbuf);
abstract member Write : char[] -> unit
override this.Write : char[] -> unit

Parameters

cbuf
Char[]

Exceptions

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

Remarks

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.

Write(Int32) Write(Int32)

Writes one character to the target.

[Android.Runtime.Register("write", "(I)V", "GetWrite_IHandler")]
public virtual void Write (int c);
abstract member Write : int -> unit
override this.Write : int -> unit

Parameters

Exceptions

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

Remarks

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.

Write(String) Write(String)

Writes the characters from the specified string to the target.

[Android.Runtime.Register("write", "(Ljava/lang/String;)V", "GetWrite_Ljava_lang_String_Handler")]
public virtual void Write (string str);
abstract member Write : string -> unit
override this.Write : string -> unit

Parameters

str
String String

the non-null string containing the characters to write.

Exceptions

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

Remarks

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.

Write(Char[], Int32, Int32) Write(Char[], Int32, Int32)

Writes count characters starting at offset in buf to the target.

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

Parameters

cbuf
Char[]
off
Int32 Int32
len
Int32 Int32

Exceptions

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

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

Remarks

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.

Write(String, Int32, Int32) Write(String, Int32, Int32)

Writes count characters from str starting at offset to the target.

[Android.Runtime.Register("write", "(Ljava/lang/String;II)V", "GetWrite_Ljava_lang_String_IIHandler")]
public virtual void Write (string str, int off, int len);
abstract member Write : string * int * int -> unit
override this.Write : string * int * int -> unit

Parameters

str
String String

the non-null string containing the characters to write.

off
Int32 Int32
len
Int32 Int32

Exceptions

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

if offset or count , or if offset + count is greater than the length of str.

Remarks

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