Charset.Encode Charset.Encode Method

Definition

Overloads

Encode(String) Encode(String)

Returns a new ByteBuffer containing the bytes encoding the characters from s.

Encode(CharBuffer) Encode(CharBuffer)

Returns a new ByteBuffer containing the bytes encoding the characters from buffer.

Encode(String) Encode(String)

Returns a new ByteBuffer containing the bytes encoding the characters from s.

[Android.Runtime.Register("encode", "(Ljava/lang/String;)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer Encode (string str);
member this.Encode : string -> Java.Nio.ByteBuffer

Parameters

Returns

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.

Encode(CharBuffer) Encode(CharBuffer)

Returns a new ByteBuffer containing the bytes encoding the characters from buffer.

[Android.Runtime.Register("encode", "(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer Encode (Java.Nio.CharBuffer cb);
member this.Encode : Java.Nio.CharBuffer -> Java.Nio.ByteBuffer

Parameters

Returns

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