CharsetDecoder.ReplaceWith(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
改變這個解碼器的替換值。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。