public final CharsetEncoder replaceWith(byte[] replacement) {if (replacement == null) {throw new IllegalArgumentException("replacement == null");}if (replacement.length == 0) {throw new IllegalArgumentException("replacement.length == 0");}if (replacement.length > maxBytesPerChar()) {throw new IllegalArgumentException("replacement length > maxBytesPerChar: " +replacement.length + " > " + maxBytesPerChar());}if (!isLegalReplacement(replacement)) {throw new IllegalArgumentException("bad replacement: " + Arrays.toString(replacement));}this.replacementBytes = replacement;implReplaceWith(replacementBytes);return this;}
public java.nio.charset.CharsetEncoder replaceWith(byte[] replacement_1){if (replacement_1 == null){throw new System.ArgumentException("replacement == null");}if (replacement_1.Length == 0){throw new System.ArgumentException("replacement.length == 0");}if (replacement_1.Length > maxBytesPerChar()){throw new System.ArgumentException("replacement length > maxBytesPerChar: " + replacement_1.Length + " > " + maxBytesPerChar());}if (!isLegalReplacement(replacement_1)){throw new System.ArgumentException("bad replacement: " + java.util.Arrays.toString(replacement_1));}this.replacementBytes = replacement_1;implReplaceWith(replacementBytes);return this;}