CharsetDecoder.ReplaceWith(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes this decoder's replacement value.
[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
Parameters
- newReplacement
- String
The new replacement; must not be
null
, must have non-zero length,
and must not be longer than the value returned by the
<code data-dev-comment-type="c">#maxCharsPerByte() maxCharsPerByte</code> method
Returns
This decoder
- Attributes
Exceptions
if the given replacement cannot satisfy the requirement mentioned above.
Remarks
Changes this decoder's replacement value.
This method invokes the #implReplaceWith implReplaceWith
method, passing the new replacement, after checking that the new replacement is acceptable.
Java documentation for java.nio.charset.CharsetDecoder.replaceWith(java.lang.String)
.
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.