Skip to content

Commit 982ece6

Browse files
committed
Harmonize javadoc format style, add missing . at end of first paragraph.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1379145 13f79535-47bb-0310-9956-ffa450edef68
1 parent 026d504 commit 982ece6

12 files changed

Lines changed: 175 additions & 213 deletions

src/main/java/org/apache/commons/codec/BinaryDecoder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ public interface BinaryDecoder extends Decoder {
2828
* Decodes a byte array and returns the results as a byte array.
2929
*
3030
* @param source
31-
* A byte array which has been encoded with the appropriate encoder
31+
* A byte array which has been encoded with the appropriate encoder
3232
* @return a byte array that contains decoded content
3333
* @throws DecoderException
34-
* A decoder exception is thrown if a Decoder encounters a failure condition during
35-
* the decode process.
34+
* A decoder exception is thrown if a Decoder encounters a failure condition during the decode process.
3635
*/
3736
byte[] decode(byte[] source) throws DecoderException;
3837
}

src/main/java/org/apache/commons/codec/BinaryEncoder.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@
2525
public interface BinaryEncoder extends Encoder {
2626

2727
/**
28-
* Encodes a byte array and return the encoded data
29-
* as a byte array.
28+
* Encodes a byte array and return the encoded data as a byte array.
3029
*
3130
* @param source
32-
* Data to be encoded
31+
* Data to be encoded
3332
* @return A byte array containing the encoded data
3433
* @throws EncoderException
35-
* thrown if the Encoder encounters a failure condition during the encoding process.
34+
* thrown if the Encoder encounters a failure condition during the encoding process.
3635
*/
3736
byte[] encode(byte[] source) throws EncoderException;
3837
}

src/main/java/org/apache/commons/codec/Decoder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
public interface Decoder {
3131

3232
/**
33-
* Decodes an "encoded" Object and returns a "decoded" Object. Note that the implementation of this
34-
* interface will try to cast the Object parameter to the specific type expected by a particular Decoder
35-
* implementation. If a {@link ClassCastException} occurs this decode method will throw a DecoderException.
33+
* Decodes an "encoded" Object and returns a "decoded" Object. Note that the implementation of this interface will
34+
* try to cast the Object parameter to the specific type expected by a particular Decoder implementation. If a
35+
* {@link ClassCastException} occurs this decode method will throw a DecoderException.
3636
*
3737
* @param source
38-
* the object to decode
38+
* the object to decode
3939
* @return a 'decoded" object
4040
* @throws DecoderException
41-
* a decoder exception can be thrown for any number of reasons. Some good candidates are that
42-
* the parameter passed to this method is null, a param cannot be cast to the appropriate type
43-
* for a specific encoder.
41+
* a decoder exception can be thrown for any number of reasons. Some good candidates are that the
42+
* parameter passed to this method is null, a param cannot be cast to the appropriate type for a
43+
* specific encoder.
4444
*/
4545
Object decode(Object source) throws DecoderException;
4646
}

src/main/java/org/apache/commons/codec/DecoderException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ public DecoderException(String message) {
5555

5656
/**
5757
* Constructs a new exception with the specified detail message and cause.
58-
*
5958
* <p>
6059
* Note that the detail message associated with <code>cause</code> is not automatically incorporated into this
6160
* exception's detail message.
62-
* </p>
6361
*
6462
* @param message
6563
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.

src/main/java/org/apache/commons/codec/Encoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public interface Encoder {
3333
* <code>byte[]</code> or <code>String</code>s depending on the implementation used.
3434
*
3535
* @param source
36-
* An object to encode
36+
* An object to encode
3737
* @return An "encoded" Object
3838
* @throws EncoderException
39-
* An encoder exception is thrown if the encoder experiences a failure condition during
40-
* the encoding process.
39+
* An encoder exception is thrown if the encoder experiences a failure condition during the encoding
40+
* process.
4141
*/
4242
Object encode(Object source) throws EncoderException;
4343
}

src/main/java/org/apache/commons/codec/StringDecoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public interface StringDecoder extends Decoder {
2828
* Decodes a String and returns a String.
2929
*
3030
* @param source
31-
* the String to decode
31+
* the String to decode
3232
* @return the encoded String
3333
* @throws DecoderException
34-
* thrown if there is an error condition during the Encoding process.
34+
* thrown if there is an error condition during the Encoding process.
3535
*/
3636
String decode(String source) throws DecoderException;
3737
}

src/main/java/org/apache/commons/codec/StringEncoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public interface StringEncoder extends Encoder {
2828
* Encodes a String and returns a String.
2929
*
3030
* @param source
31-
* the String to encode
31+
* the String to encode
3232
* @return the encoded String
3333
* @throws EncoderException
34-
* thrown if there is an error condition during the encoding process.
34+
* thrown if there is an error condition during the encoding process.
3535
*/
3636
String encode(String source) throws EncoderException;
3737
}

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

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public BCodec() {
6161
* Constructor which allows for the selection of a default charset
6262
*
6363
* @param charset
64-
* the default string charset to use.
64+
* the default string charset to use.
6565
*
6666
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6767
* @since 1.7
@@ -74,7 +74,7 @@ public BCodec(final Charset charset) {
7474
* Constructor which allows for the selection of a default charset
7575
*
7676
* @param charsetName
77-
* the default charset to use.
77+
* the default charset to use.
7878
* @throws UnsupportedCharsetException
7979
* If the named charset is unavailable
8080
* @since 1.7 throws UnsupportedCharsetException if the named charset is unavailable
@@ -109,13 +109,12 @@ protected byte[] doDecoding(byte[] bytes) {
109109
* Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped.
110110
*
111111
* @param value
112-
* string to convert to Base64 form
112+
* string to convert to Base64 form
113113
* @param charset
114-
* the charset for <code>value</code>
114+
* the charset for <code>value</code>
115115
* @return Base64 string
116-
*
117116
* @throws EncoderException
118-
* thrown if a failure condition is encountered during the encoding process.
117+
* thrown if a failure condition is encountered during the encoding process.
119118
* @since 1.7
120119
*/
121120
public String encode(final String value, final Charset charset) throws EncoderException {
@@ -129,13 +128,12 @@ public String encode(final String value, final Charset charset) throws EncoderEx
129128
* Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped.
130129
*
131130
* @param value
132-
* string to convert to Base64 form
131+
* string to convert to Base64 form
133132
* @param charset
134-
* the charset for <code>value</code>
133+
* the charset for <code>value</code>
135134
* @return Base64 string
136-
*
137135
* @throws EncoderException
138-
* thrown if a failure condition is encountered during the encoding process.
136+
* thrown if a failure condition is encountered during the encoding process.
139137
*/
140138
public String encode(final String value, final String charset) throws EncoderException {
141139
if (value == null) {
@@ -152,11 +150,10 @@ public String encode(final String value, final String charset) throws EncoderExc
152150
* Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped.
153151
*
154152
* @param value
155-
* string to convert to Base64 form
153+
* string to convert to Base64 form
156154
* @return Base64 string
157-
*
158155
* @throws EncoderException
159-
* thrown if a failure condition is encountered during the encoding process.
156+
* thrown if a failure condition is encountered during the encoding process.
160157
*/
161158
@Override
162159
public String encode(String value) throws EncoderException {
@@ -192,11 +189,10 @@ public String decode(String value) throws DecoderException {
192189
* Encodes an object into its Base64 form using the default charset. Unsafe characters are escaped.
193190
*
194191
* @param value
195-
* object to convert to Base64 form
192+
* object to convert to Base64 form
196193
* @return Base64 object
197-
*
198194
* @throws EncoderException
199-
* thrown if a failure condition is encountered during the encoding process.
195+
* thrown if a failure condition is encountered during the encoding process.
200196
*/
201197
@Override
202198
public Object encode(Object value) throws EncoderException {
@@ -216,13 +212,11 @@ public Object encode(Object value) throws EncoderException {
216212
* representation.
217213
*
218214
* @param value
219-
* Base64 object to convert into its original form
220-
*
215+
* Base64 object to convert into its original form
221216
* @return original object
222-
*
223217
* @throws DecoderException
224-
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is
225-
* encountered during the decode process.
218+
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is encountered
219+
* during the decode process.
226220
*/
227221
@Override
228222
public Object decode(Object value) throws DecoderException {

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

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ public QCodec() {
118118
}
119119

120120
/**
121-
* Constructor which allows for the selection of a default charset
121+
* Constructor which allows for the selection of a default charset.
122122
*
123123
* @param charset
124-
* the default string charset to use.
124+
* the default string charset to use.
125125
*
126126
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
127127
* @since 1.7
@@ -132,10 +132,10 @@ public QCodec(final Charset charset) {
132132
}
133133

134134
/**
135-
* Constructor which allows for the selection of a default charset
135+
* Constructor which allows for the selection of a default charset.
136136
*
137137
* @param charsetName
138-
* the charset to use.
138+
* the charset to use.
139139
* @throws UnsupportedCharsetException
140140
* If the named charset is unavailable
141141
* @since 1.7 throws UnsupportedCharsetException if the named charset is unavailable
@@ -197,13 +197,12 @@ protected byte[] doDecoding(byte[] bytes) throws DecoderException {
197197
* Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
198198
*
199199
* @param str
200-
* string to convert to quoted-printable form
200+
* string to convert to quoted-printable form
201201
* @param charset
202-
* the charset for str
202+
* the charset for str
203203
* @return quoted-printable string
204-
*
205204
* @throws EncoderException
206-
* thrown if a failure condition is encountered during the encoding process.
205+
* thrown if a failure condition is encountered during the encoding process.
207206
* @since 1.7
208207
*/
209208
public String encode(final String str, final Charset charset) throws EncoderException {
@@ -217,13 +216,12 @@ public String encode(final String str, final Charset charset) throws EncoderExce
217216
* Encodes a string into its quoted-printable form using the specified charset. Unsafe characters are escaped.
218217
*
219218
* @param str
220-
* string to convert to quoted-printable form
219+
* string to convert to quoted-printable form
221220
* @param charset
222-
* the charset for str
221+
* the charset for str
223222
* @return quoted-printable string
224-
*
225223
* @throws EncoderException
226-
* thrown if a failure condition is encountered during the encoding process.
224+
* thrown if a failure condition is encountered during the encoding process.
227225
*/
228226
public String encode(final String str, final String charset) throws EncoderException {
229227
if (str == null) {
@@ -240,11 +238,10 @@ public String encode(final String str, final String charset) throws EncoderExcep
240238
* Encodes a string into its quoted-printable form using the default charset. Unsafe characters are escaped.
241239
*
242240
* @param str
243-
* string to convert to quoted-printable form
241+
* string to convert to quoted-printable form
244242
* @return quoted-printable string
245-
*
246243
* @throws EncoderException
247-
* thrown if a failure condition is encountered during the encoding process.
244+
* thrown if a failure condition is encountered during the encoding process.
248245
*/
249246
@Override
250247
public String encode(String str) throws EncoderException {
@@ -259,12 +256,10 @@ public String encode(String str) throws EncoderException {
259256
* representation.
260257
*
261258
* @param str
262-
* quoted-printable string to convert into its original form
263-
*
259+
* quoted-printable string to convert into its original form
264260
* @return original string
265-
*
266261
* @throws DecoderException
267-
* A decoder exception is thrown if a failure condition is encountered during the decode process.
262+
* A decoder exception is thrown if a failure condition is encountered during the decode process.
268263
*/
269264
@Override
270265
public String decode(String str) throws DecoderException {
@@ -282,11 +277,10 @@ public String decode(String str) throws DecoderException {
282277
* Encodes an object into its quoted-printable form using the default charset. Unsafe characters are escaped.
283278
*
284279
* @param obj
285-
* object to convert to quoted-printable form
280+
* object to convert to quoted-printable form
286281
* @return quoted-printable object
287-
*
288282
* @throws EncoderException
289-
* thrown if a failure condition is encountered during the encoding process.
283+
* thrown if a failure condition is encountered during the encoding process.
290284
*/
291285
@Override
292286
public Object encode(Object obj) throws EncoderException {
@@ -306,13 +300,11 @@ public Object encode(Object obj) throws EncoderException {
306300
* representation.
307301
*
308302
* @param obj
309-
* quoted-printable object to convert into its original form
310-
*
303+
* quoted-printable object to convert into its original form
311304
* @return original object
312-
*
313305
* @throws DecoderException
314-
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is
315-
* encountered during the decode process.
306+
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is encountered
307+
* during the decode process.
316308
*/
317309
@Override
318310
public Object decode(Object obj) throws DecoderException {
@@ -359,7 +351,7 @@ public boolean isEncodeBlanks() {
359351
* Defines whether optional transformation of SPACE characters is to be used
360352
*
361353
* @param b
362-
* {@code true} if SPACE characters are to be transformed, {@code false} otherwise
354+
* {@code true} if SPACE characters are to be transformed, {@code false} otherwise
363355
*/
364356
public void setEncodeBlanks(boolean b) {
365357
this.encodeBlanks = b;

0 commit comments

Comments
 (0)