Skip to content

Commit a078eee

Browse files
committed
Harmonised javadoc, removed unneeded p tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1379049 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8c9b7a3 commit a078eee

9 files changed

Lines changed: 36 additions & 81 deletions

File tree

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ public interface BinaryDecoder extends Decoder {
2727
/**
2828
* Decodes a byte array and returns the results as a byte array.
2929
*
30-
* @param source A byte array which has been encoded with the
31-
* appropriate encoder
32-
*
30+
* @param source
31+
* A byte array which has been encoded with the appropriate encoder
3332
* @return a byte array that contains decoded content
34-
*
35-
* @throws DecoderException A decoder exception is thrown
36-
* if a Decoder encounters a failure condition during
37-
* the decode process.
33+
* @throws DecoderException
34+
* A decoder exception is thrown if a Decoder encounters a failure condition during
35+
* the decode process.
3836
*/
3937
byte[] decode(byte[] source) throws DecoderException;
4038
}

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ public interface BinaryEncoder extends Encoder {
2828
* Encodes a byte array and return the encoded data
2929
* as a byte array.
3030
*
31-
* @param source Data to be encoded
32-
*
31+
* @param source
32+
* Data to be encoded
3333
* @return A byte array containing the encoded data
34-
*
35-
* @throws EncoderException thrown if the Encoder
36-
* encounters a failure condition during the
37-
* encoding process.
34+
* @throws EncoderException
35+
* thrown if the Encoder encounters a failure condition during the encoding process.
3836
*/
3937
byte[] encode(byte[] source) throws EncoderException;
4038
}

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,71 +57,55 @@
5757
*/
5858
public class CharEncoding {
5959
/**
60-
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1. </p>
60+
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.
6161
* <p>
6262
* Every implementation of the Java platform is required to support this character encoding.
63-
* </p>
6463
*
6564
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6665
*/
6766
public static final String ISO_8859_1 = "ISO-8859-1";
6867

6968
/**
70-
* <p>
7169
* Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.
72-
* </p>
7370
* <p>
7471
* Every implementation of the Java platform is required to support this character encoding.
75-
* </p>
7672
*
7773
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
7874
*/
7975
public static final String US_ASCII = "US-ASCII";
8076

8177
/**
82-
* <p>
8378
* Sixteen-bit Unicode Transformation Format, The byte order specified by a mandatory initial byte-order mark
8479
* (either order accepted on input, big-endian used on output)
85-
* </p>
8680
* <p>
8781
* Every implementation of the Java platform is required to support this character encoding.
88-
* </p>
8982
*
9083
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
9184
*/
9285
public static final String UTF_16 = "UTF-16";
9386

9487
/**
95-
* <p>
9688
* Sixteen-bit Unicode Transformation Format, big-endian byte order.
97-
* </p>
9889
* <p>
9990
* Every implementation of the Java platform is required to support this character encoding.
100-
* </p>
10191
*
10292
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
10393
*/
10494
public static final String UTF_16BE = "UTF-16BE";
10595

10696
/**
107-
* <p>
10897
* Sixteen-bit Unicode Transformation Format, little-endian byte order.
109-
* </p>
11098
* <p>
11199
* Every implementation of the Java platform is required to support this character encoding.
112-
* </p>
113100
*
114101
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
115102
*/
116103
public static final String UTF_16LE = "UTF-16LE";
117104

118105
/**
119-
* <p>
120106
* Eight-bit Unicode Transformation Format.
121-
* </p>
122107
* <p>
123108
* Every implementation of the Java platform is required to support this character encoding.
124-
* </p>
125109
*
126110
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
127111
*/

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,71 +89,55 @@ public static Charset toCharset(String charset) {
8989
}
9090

9191
/**
92-
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1. </p>
92+
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.
9393
* <p>
9494
* Every implementation of the Java platform is required to support this character encoding.
95-
* </p>
9695
*
9796
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
9897
*/
9998
public static final Charset ISO_8859_1 = Charset.forName(CharEncoding.ISO_8859_1);
10099

101100
/**
102-
* <p>
103101
* Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.
104-
* </p>
105102
* <p>
106103
* Every implementation of the Java platform is required to support this character encoding.
107-
* </p>
108104
*
109105
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
110106
*/
111107
public static final Charset US_ASCII = Charset.forName(CharEncoding.US_ASCII);
112108

113109
/**
114-
* <p>
115110
* Sixteen-bit Unicode Transformation Format, The byte order specified by a mandatory initial byte-order mark
116111
* (either order accepted on input, big-endian used on output)
117-
* </p>
118112
* <p>
119113
* Every implementation of the Java platform is required to support this character encoding.
120-
* </p>
121114
*
122115
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
123116
*/
124117
public static final Charset UTF_16 = Charset.forName(CharEncoding.UTF_16);
125118

126119
/**
127-
* <p>
128120
* Sixteen-bit Unicode Transformation Format, big-endian byte order.
129-
* </p>
130121
* <p>
131122
* Every implementation of the Java platform is required to support this character encoding.
132-
* </p>
133123
*
134124
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
135125
*/
136126
public static final Charset UTF_16BE = Charset.forName(CharEncoding.UTF_16BE);
137127

138128
/**
139-
* <p>
140129
* Sixteen-bit Unicode Transformation Format, little-endian byte order.
141-
* </p>
142130
* <p>
143131
* Every implementation of the Java platform is required to support this character encoding.
144-
* </p>
145132
*
146133
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
147134
*/
148135
public static final Charset UTF_16LE = Charset.forName(CharEncoding.UTF_16LE);
149136

150137
/**
151-
* <p>
152138
* Eight-bit Unicode Transformation Format.
153-
* </p>
154139
* <p>
155140
* Every implementation of the Java platform is required to support this character encoding.
156-
* </p>
157141
*
158142
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
159143
*/

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

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

3232
/**
33-
* Decodes an "encoded" Object and returns a "decoded"
34-
* Object. Note that the implementation of this
35-
* interface will try to cast the Object parameter
36-
* to the specific type expected by a particular Decoder
37-
* implementation. If a {@link ClassCastException} occurs
38-
* this decode method will throw a DecoderException.
39-
*
40-
* @param source the object to decode
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.
4136
*
37+
* @param source
38+
* the object to decode
4239
* @return a 'decoded" object
43-
*
44-
* @throws DecoderException a decoder exception can
45-
* be thrown for any number of reasons. Some good
46-
* candidates are that the parameter passed to this
47-
* method is null, a param cannot be cast to the
48-
* appropriate type for a specific encoder.
40+
* @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.
4944
*/
5045
Object decode(Object source) throws DecoderException;
5146
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public DecoderException(String message) {
5454
}
5555

5656
/**
57-
* Constructsa new exception with the specified detail message and cause.
57+
* Constructs a new exception with the specified detail message and cause.
5858
*
5959
* <p>
6060
* Note that the detail message associated with <code>cause</code> is not automatically incorporated into this

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@
2929
public interface Encoder {
3030

3131
/**
32-
* Encodes an "Object" and returns the encoded content
33-
* as an Object. The Objects here may just be <code>byte[]</code>
34-
* or <code>String</code>s depending on the implementation used.
35-
*
36-
* @param source An object to encode
32+
* Encodes an "Object" and returns the encoded content as an Object. The Objects here may just be
33+
* <code>byte[]</code> or <code>String</code>s depending on the implementation used.
3734
*
35+
* @param source
36+
* An object to encode
3837
* @return An "encoded" Object
39-
*
40-
* @throws EncoderException an encoder exception is
41-
* thrown if the encoder experiences a failure
42-
* condition during the encoding process.
38+
* @throws EncoderException
39+
* An encoder exception is thrown if the encoder experiences a failure condition during
40+
* the encoding process.
4341
*/
4442
Object encode(Object source) throws EncoderException;
4543
}

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ public interface StringDecoder extends Decoder {
2727
/**
2828
* Decodes a String and returns a String.
2929
*
30-
* @param source the String to decode
31-
*
30+
* @param source
31+
* the String to decode
3232
* @return the encoded String
33-
*
34-
* @throws DecoderException thrown if there is
35-
* an error condition during the Encoding process.
33+
* @throws DecoderException
34+
* thrown if there is an error condition during the Encoding process.
3635
*/
3736
String decode(String source) throws DecoderException;
3837
}

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ public interface StringEncoder extends Encoder {
2727
/**
2828
* Encodes a String and returns a String.
2929
*
30-
* @param source the String to encode
31-
*
30+
* @param source
31+
* the String to encode
3232
* @return the encoded String
33-
*
34-
* @throws EncoderException thrown if there is
35-
* an error condition during the encoding process.
33+
* @throws EncoderException
34+
* thrown if there is an error condition during the encoding process.
3635
*/
3736
String encode(String source) throws EncoderException;
3837
}

0 commit comments

Comments
 (0)