replaceWith

fun replaceWith(newReplacement: String): CharsetDecoder

Changes this decoder's replacement value.

This method invokes the .implReplaceWith method, passing the new replacement, after checking that the new replacement is acceptable.

Return

This decoder

Parameters

newReplacement

The new replacement; must not be null, must have non-zero length,

and must not be longer than the value returned by the .maxCharsPerByte method

Throws

If the preconditions on the parameter do not hold