Language

CharsetEncoder.ReplaceWith(Byte[]) メソッド

定義

このエンコーダーの置換値を変更します。

[Android.Runtime.Register("replaceWith", "([B)Ljava/nio/charset/CharsetEncoder;", "")]
public Java.Nio.Charset.CharsetEncoder? ReplaceWith(byte[]? newReplacement);
[<Android.Runtime.Register("replaceWith", "([B)Ljava/nio/charset/CharsetEncoder;", "")>]
member this.ReplaceWith : byte[] -> Java.Nio.Charset.CharsetEncoder

パラメーター

newReplacement
Byte[]

新しい置換。は nullでなく、長さが 0 以外である必要があります。

                must not be longer than the value returned by the
                <code data-dev-comment-type="c">#maxBytesPerChar() maxBytesPerChar</code> method, and
                must be <code data-dev-comment-type="c">#isLegalReplacement legal</code>

返品

このエンコーダー

属性

例外

指定された置換が上記の要件を満たすことができない場合は〘。

注釈

このエンコーダーの置換値を変更します。

このメソッドは、新しい置換が許容可能であることを確認した後、新しい置換を渡して、 #implReplaceWith implReplaceWith メソッドを呼び出します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象