Skip to content

Commit b4c6086

Browse files
committed
Javadoc tweaks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1814512 13f79535-47bb-0310-9956-ffa450edef68
1 parent aabe13f commit b4c6086

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
*/
6666
public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, StringEncoder, StringDecoder {
6767
/**
68-
* The default charset used for string decoding and encoding.
68+
* The default Charset used for string decoding and encoding.
6969
*/
7070
private final Charset charset;
7171

@@ -108,7 +108,7 @@ public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, Strin
108108
}
109109

110110
/**
111-
* Default constructor, assumes default charset of {@link Charsets#UTF_8}
111+
* Default constructor, assumes default Charset of {@link Charsets#UTF_8}
112112
*/
113113
public QuotedPrintableCodec() {
114114
this(Charsets.UTF_8, false);
@@ -126,21 +126,21 @@ public QuotedPrintableCodec(final boolean strict) {
126126
}
127127

128128
/**
129-
* Constructor which allows for the selection of a default charset.
129+
* Constructor which allows for the selection of a default Charset.
130130
*
131131
* @param charset
132-
* the default string charset to use.
132+
* the default string Charset to use.
133133
* @since 1.7
134134
*/
135135
public QuotedPrintableCodec(final Charset charset) {
136136
this(charset, false);
137137
}
138138

139139
/**
140-
* Constructor which allows for the selection of a default charset and strict mode.
140+
* Constructor which allows for the selection of a default Charset and strict mode.
141141
*
142142
* @param charset
143-
* the default string charset to use.
143+
* the default string Charset to use.
144144
* @param strict
145145
* if {@code true}, soft line breaks will be used
146146
* @since 1.10
@@ -151,19 +151,19 @@ public QuotedPrintableCodec(final Charset charset, final boolean strict) {
151151
}
152152

153153
/**
154-
* Constructor which allows for the selection of a default charset.
154+
* Constructor which allows for the selection of a default Charset.
155155
*
156156
* @param charsetName
157-
* the default string charset to use.
157+
* the default string Charset to use.
158158
* @throws UnsupportedCharsetException
159-
* If no support for the named charset is available
159+
* If no support for the named Charset is available
160160
* in this instance of the Java virtual machine
161161
* @throws IllegalArgumentException
162162
* If the given charsetName is null
163163
* @throws IllegalCharsetNameException
164-
* If the given charset name is illegal
164+
* If the given Charset name is illegal
165165
*
166-
* @since 1.7 throws UnsupportedCharsetException if the named charset is unavailable
166+
* @since 1.7 throws UnsupportedCharsetException if the named Charset is unavailable
167167
*/
168168
public QuotedPrintableCodec(final String charsetName)
169169
throws IllegalCharsetNameException, IllegalArgumentException, UnsupportedCharsetException {
@@ -410,7 +410,7 @@ public byte[] decode(final byte[] bytes) throws DecoderException {
410410
}
411411

412412
/**
413-
* Encodes a string into its quoted-printable form using the default string charset. Unsafe characters are escaped.
413+
* Encodes a string into its quoted-printable form using the default string Charset. Unsafe characters are escaped.
414414
* <p>
415415
* Depending on the selection of the {@code strict} parameter, this function either implements the full ruleset
416416
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
@@ -430,13 +430,13 @@ public String encode(final String sourceStr) throws EncoderException {
430430
}
431431

432432
/**
433-
* Decodes a quoted-printable string into its original form using the specified string charset. Escaped characters
433+
* Decodes a quoted-printable string into its original form using the specified string Charset. Escaped characters
434434
* are converted back to their original representation.
435435
*
436436
* @param sourceStr
437437
* quoted-printable string to convert into its original form
438438
* @param sourceCharset
439-
* the original string charset
439+
* the original string Charset
440440
* @return original string
441441
* @throws DecoderException
442442
* Thrown if quoted-printable decoding is unsuccessful
@@ -450,18 +450,18 @@ public String decode(final String sourceStr, final Charset sourceCharset) throws
450450
}
451451

452452
/**
453-
* Decodes a quoted-printable string into its original form using the specified string charset. Escaped characters
453+
* Decodes a quoted-printable string into its original form using the specified string Charset. Escaped characters
454454
* are converted back to their original representation.
455455
*
456456
* @param sourceStr
457457
* quoted-printable string to convert into its original form
458458
* @param sourceCharset
459-
* the original string charset
459+
* the original string Charset
460460
* @return original string
461461
* @throws DecoderException
462462
* Thrown if quoted-printable decoding is unsuccessful
463463
* @throws UnsupportedEncodingException
464-
* Thrown if charset is not supported
464+
* Thrown if Charset is not supported
465465
*/
466466
public String decode(final String sourceStr, final String sourceCharset) throws DecoderException, UnsupportedEncodingException {
467467
if (sourceStr == null) {
@@ -471,14 +471,14 @@ public String decode(final String sourceStr, final String sourceCharset) throws
471471
}
472472

473473
/**
474-
* Decodes a quoted-printable string into its original form using the default string charset. Escaped characters are
474+
* Decodes a quoted-printable string into its original form using the default string Charset. Escaped characters are
475475
* converted back to their original representation.
476476
*
477477
* @param sourceStr
478478
* quoted-printable string to convert into its original form
479479
* @return original string
480480
* @throws DecoderException
481-
* Thrown if quoted-printable decoding is unsuccessful. Thrown if charset is not supported.
481+
* Thrown if quoted-printable decoding is unsuccessful. Thrown if Charset is not supported.
482482
* @see #getCharset()
483483
*/
484484
@Override
@@ -538,26 +538,26 @@ public Object decode(final Object obj) throws DecoderException {
538538
}
539539

540540
/**
541-
* Gets the default charset name used for string decoding and encoding.
541+
* Gets the default Charset name used for string decoding and encoding.
542542
*
543-
* @return the default charset name
543+
* @return the default Charset name
544544
* @since 1.7
545545
*/
546546
public Charset getCharset() {
547547
return this.charset;
548548
}
549549

550550
/**
551-
* Gets the default charset name used for string decoding and encoding.
551+
* Gets the default Charset name used for string decoding and encoding.
552552
*
553-
* @return the default charset name
553+
* @return the default Charset name
554554
*/
555555
public String getDefaultCharset() {
556556
return this.charset.name();
557557
}
558558

559559
/**
560-
* Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
560+
* Encodes a string into its quoted-printable form using the specified Charset. Unsafe characters are escaped.
561561
* <p>
562562
* Depending on the selection of the {@code strict} parameter, this function either implements the full ruleset
563563
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
@@ -566,7 +566,7 @@ public String getDefaultCharset() {
566566
* @param sourceStr
567567
* string to convert to quoted-printable form
568568
* @param sourceCharset
569-
* the charset for str
569+
* the Charset for sourceStr
570570
* @return quoted-printable string
571571
* @since 1.7
572572
*/
@@ -578,7 +578,7 @@ public String encode(final String sourceStr, final Charset sourceCharset) {
578578
}
579579

580580
/**
581-
* Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
581+
* Encodes a string into its quoted-printable form using the specified Charset. Unsafe characters are escaped.
582582
* <p>
583583
* Depending on the selection of the {@code strict} parameter, this function either implements the full ruleset
584584
* or only a subset of quoted-printable encoding specification (rule #1 and rule #2) as defined in
@@ -587,10 +587,10 @@ public String encode(final String sourceStr, final Charset sourceCharset) {
587587
* @param sourceStr
588588
* string to convert to quoted-printable form
589589
* @param sourceCharset
590-
* the charset for str
590+
* the Charset for sourceStr
591591
* @return quoted-printable string
592592
* @throws UnsupportedEncodingException
593-
* Thrown if the charset is not supported
593+
* Thrown if the Charset is not supported
594594
*/
595595
public String encode(final String sourceStr, final String sourceCharset) throws UnsupportedEncodingException {
596596
if (sourceStr == null) {

0 commit comments

Comments
 (0)