語言

CharsetDecoder.ReplaceWith(String) 方法

定義

改變這個解碼器的替換值。

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

參數

newReplacement
String

新的接替者;必須不為 null,且長度必須非零,

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

傳回

這個解碼器

屬性

例外狀況

若所給替換無法滿足上述要求。

備註

改變這個解碼器的替換值。

此方法在確認新替換可接受後,會呼叫該 #implReplaceWith implReplaceWith 方法,傳遞新的替換。

Java 文件 java.nio.charset.CharsetDecoder.replaceWith(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於