次の方法で共有


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 ドキュメント java.nio.charset.CharsetEncoder.replaceWith(byte[])

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

適用対象