Condividi tramite


DataOutputStream.WriteChars(String) Method

Definition

Writes a string to the underlying output stream as a sequence of characters.

[Android.Runtime.Register("writeChars", "(Ljava/lang/String;)V", "")]
public void WriteChars (string? s);
[<Android.Runtime.Register("writeChars", "(Ljava/lang/String;)V", "")>]
abstract member WriteChars : string -> unit
override this.WriteChars : string -> unit

Parameters

s
String

a String value to be written.

Implements

Attributes

Exceptions

Remarks

Writes a string to the underlying output stream as a sequence of characters. Each character is written to the data output stream as if by the writeChar method. If no exception is thrown, the counter written is incremented by twice the length of s.

Java documentation for java.io.DataOutputStream.writeChars(java.lang.String).

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