@@ -435,18 +435,18 @@ public String encode(final String str) throws EncoderException {
435435 *
436436 * @param str
437437 * quoted-printable string to convert into its original form
438- * @param charset
438+ * @param sourceCharset
439439 * the original string charset
440440 * @return original string
441441 * @throws DecoderException
442442 * Thrown if quoted-printable decoding is unsuccessful
443443 * @since 1.7
444444 */
445- public String decode (final String str , final Charset charset ) throws DecoderException {
445+ public String decode (final String str , final Charset sourceCharset ) throws DecoderException {
446446 if (str == null ) {
447447 return null ;
448448 }
449- return new String (this .decode (StringUtils .getBytesUsAscii (str )), charset );
449+ return new String (this .decode (StringUtils .getBytesUsAscii (str )), sourceCharset );
450450 }
451451
452452 /**
@@ -455,19 +455,19 @@ public String decode(final String str, final Charset charset) throws DecoderExce
455455 *
456456 * @param str
457457 * quoted-printable string to convert into its original form
458- * @param charset
458+ * @param sourceCharset
459459 * the original string charset
460460 * @return original string
461461 * @throws DecoderException
462462 * Thrown if quoted-printable decoding is unsuccessful
463463 * @throws UnsupportedEncodingException
464464 * Thrown if charset is not supported
465465 */
466- public String decode (final String str , final String charset ) throws DecoderException , UnsupportedEncodingException {
466+ public String decode (final String str , final String sourceCharset ) throws DecoderException , UnsupportedEncodingException {
467467 if (str == null ) {
468468 return null ;
469469 }
470- return new String (decode (StringUtils .getBytesUsAscii (str )), charset );
470+ return new String (decode (StringUtils .getBytesUsAscii (str )), sourceCharset );
471471 }
472472
473473 /**
@@ -565,16 +565,16 @@ public String getDefaultCharset() {
565565 *
566566 * @param str
567567 * string to convert to quoted-printable form
568- * @param charset
568+ * @param sourceCharset
569569 * the charset for str
570570 * @return quoted-printable string
571571 * @since 1.7
572572 */
573- public String encode (final String str , final Charset charset ) {
573+ public String encode (final String str , final Charset sourceCharset ) {
574574 if (str == null ) {
575575 return null ;
576576 }
577- return StringUtils .newStringUsAscii (this .encode (str .getBytes (charset )));
577+ return StringUtils .newStringUsAscii (this .encode (str .getBytes (sourceCharset )));
578578 }
579579
580580 /**
@@ -586,16 +586,16 @@ public String encode(final String str, final Charset charset) {
586586 *
587587 * @param str
588588 * string to convert to quoted-printable form
589- * @param charset
589+ * @param sourceCharset
590590 * the charset for str
591591 * @return quoted-printable string
592592 * @throws UnsupportedEncodingException
593593 * Thrown if the charset is not supported
594594 */
595- public String encode (final String str , final String charset ) throws UnsupportedEncodingException {
595+ public String encode (final String str , final String sourceCharset ) throws UnsupportedEncodingException {
596596 if (str == null ) {
597597 return null ;
598598 }
599- return StringUtils .newStringUsAscii (encode (str .getBytes (charset )));
599+ return StringUtils .newStringUsAscii (encode (str .getBytes (sourceCharset )));
600600 }
601601}
0 commit comments