@@ -149,7 +149,7 @@ public static final byte[] decodeQuotedPrintable(final byte[] bytes) throws Deco
149149 }
150150
151151 /**
152- * Write a byte to the buffer.
152+ * Encodes a byte in the buffer.
153153 *
154154 * @param b
155155 * byte to write
@@ -159,8 +159,7 @@ public static final byte[] decodeQuotedPrintable(final byte[] bytes) throws Deco
159159 * the buffer to write to
160160 * @return the number of bytes that have been written to the buffer
161161 */
162- private static int encodeByte (final int b , final boolean encode ,
163- final ByteArrayOutputStream buffer ) {
162+ private static int encodeByte (final int b , final boolean encode , final ByteArrayOutputStream buffer ) {
164163 if (encode ) {
165164 return encodeQuotedPrintable (b , buffer );
166165 }
@@ -388,8 +387,7 @@ public QuotedPrintableCodec(final Charset charset, final boolean strict) {
388387 *
389388 * @since 1.7 throws UnsupportedCharsetException if the named Charset is unavailable
390389 */
391- public QuotedPrintableCodec (final String charsetName )
392- throws IllegalCharsetNameException , IllegalArgumentException , UnsupportedCharsetException {
390+ public QuotedPrintableCodec (final String charsetName ) throws IllegalCharsetNameException , IllegalArgumentException , UnsupportedCharsetException {
393391 this (Charset .forName (charsetName ), false );
394392 }
395393
@@ -434,9 +432,7 @@ public Object decode(final Object obj) throws DecoderException {
434432 if (obj instanceof String ) {
435433 return decode ((String ) obj );
436434 }
437- throw new DecoderException ("Objects of type " +
438- obj .getClass ().getName () +
439- " cannot be quoted-printable decoded" );
435+ throw new DecoderException ("Objects of type " + obj .getClass ().getName () + " cannot be quoted-printable decoded" );
440436 }
441437
442438 /**
@@ -489,8 +485,7 @@ public String decode(final String sourceStr, final Charset sourceCharset) throws
489485 * @throws UnsupportedEncodingException
490486 * Thrown if Charset is not supported
491487 */
492- public String decode (final String sourceStr , final String sourceCharset )
493- throws DecoderException , UnsupportedEncodingException {
488+ public String decode (final String sourceStr , final String sourceCharset ) throws DecoderException , UnsupportedEncodingException {
494489 if (sourceStr == null ) {
495490 return null ;
496491 }
@@ -535,9 +530,7 @@ public Object encode(final Object obj) throws EncoderException {
535530 if (obj instanceof String ) {
536531 return encode ((String ) obj );
537532 }
538- throw new EncoderException ("Objects of type " +
539- obj .getClass ().getName () +
540- " cannot be quoted-printable encoded" );
533+ throw new EncoderException ("Objects of type " + obj .getClass ().getName () + " cannot be quoted-printable encoded" );
541534 }
542535
543536 /**
@@ -558,7 +551,7 @@ public Object encode(final Object obj) throws EncoderException {
558551 */
559552 @ Override
560553 public String encode (final String sourceStr ) throws EncoderException {
561- return this . encode (sourceStr , getCharset ());
554+ return encode (sourceStr , getCharset ());
562555 }
563556
564557 /**
0 commit comments