Compartilhar via


DataOutputStream.WriteBytes(String) Method

Definition

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

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

Parameters

s
String

a string of bytes to be written.

Implements

Attributes

Exceptions

Remarks

Writes out the string to the underlying output stream as a sequence of bytes. Each character in the string is written out, in sequence, by discarding its high eight bits. If no exception is thrown, the counter written is incremented by the length of s.

Java documentation for java.io.DataOutputStream.writeBytes(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