Skip to content

Commit a07a2f4

Browse files
committed
Update Javadoc reference to point to Java 1.4.2 Javadoc on Sun's site (from 1.3.)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@797301 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7028095 commit a07a2f4

5 files changed

Lines changed: 19 additions & 37 deletions

File tree

src/java/org/apache/commons/codec/RequiredCharsetNames.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
* Character encoding names required of every implementation of the Java platform.
2222
*
2323
* From the Java documentation <a
24-
* href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character encoding names
25-
* </a>:
24+
* href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>:
2625
* <p>
2726
* <cite>Every implementation of the Java platform is required to support the following character encodings. Consult the
2827
* release documentation for your implementation to see if any other encodings are supported. Consult the release
@@ -48,8 +47,7 @@
4847
* This perhaps would best belong in the [lang] project. Even if a similar interface is defined in [lang], it is not
4948
* forseen that [codec] would be made to depend on [lang].
5049
*
51-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character encoding
52-
* names </a>
50+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
5351
* @author Apache Software Foundation
5452
* @since 1.4
5553
* @version $Id$
@@ -63,8 +61,7 @@ public class RequiredCharsetNames {
6361
* Every implementation of the Java platform is required to support this character encoding.
6462
* </p>
6563
*
66-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
67-
* encoding names </a>
64+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6865
*/
6966
public static final String ISO_8859_1 = "ISO-8859-1";
7067

@@ -76,8 +73,7 @@ public class RequiredCharsetNames {
7673
* Every implementation of the Java platform is required to support this character encoding.
7774
* </p>
7875
*
79-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
80-
* encoding names </a>
76+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
8177
*/
8278
public static final String US_ASCII = "US-ASCII";
8379

@@ -90,8 +86,7 @@ public class RequiredCharsetNames {
9086
* Every implementation of the Java platform is required to support this character encoding.
9187
* </p>
9288
*
93-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
94-
* encoding names </a>
89+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
9590
*/
9691
public static final String UTF_16 = "UTF-16";
9792

@@ -103,8 +98,7 @@ public class RequiredCharsetNames {
10398
* Every implementation of the Java platform is required to support this character encoding.
10499
* </p>
105100
*
106-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
107-
* encoding names </a>
101+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
108102
*/
109103
public static final String UTF_16BE = "UTF-16BE";
110104

@@ -116,8 +110,7 @@ public class RequiredCharsetNames {
116110
* Every implementation of the Java platform is required to support this character encoding.
117111
* </p>
118112
*
119-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
120-
* encoding names </a>
113+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
121114
*/
122115
public static final String UTF_16LE = "UTF-16LE";
123116

@@ -129,8 +122,7 @@ public class RequiredCharsetNames {
129122
* Every implementation of the Java platform is required to support this character encoding.
130123
* </p>
131124
*
132-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
133-
* encoding names </a>
125+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
134126
*/
135127
public static final String UTF_8 = "UTF-8";
136128
}

src/java/org/apache/commons/codec/binary/StringBytesUtils.java

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323

2424
/**
2525
* Converts String to bytes using the encodings required by the Java specification. These encodings are specified in <a
26-
* href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character encoding names</a>
26+
* href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
2727
*
2828
* @see RequiredCharsetNames
29-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character encoding
30-
* names </a>
29+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
3130
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
3231
* @version $Id: $
3332
* @since 1.4
@@ -43,8 +42,7 @@ public class StringBytesUtils {
4342
* @return encoded bytes
4443
* @throws IllegalStateException
4544
* Thrown when the charset is missing, which should be never according the the Java specification.
46-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
47-
* encoding names </a>
45+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
4846
* @see #getSupportedBytes(String, String)
4947
*/
5048
public static byte[] getBytesIso8859_1(String string) {
@@ -60,8 +58,7 @@ public static byte[] getBytesIso8859_1(String string) {
6058
* @return encoded bytes
6159
* @throws IllegalStateException
6260
* Thrown when the charset is missing, which should be never according the the Java specification.
63-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
64-
* encoding names </a>
61+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6562
* @see #getSupportedBytes(String, String)
6663
*/
6764
public static byte[] getBytesUsAscii(String string) {
@@ -77,8 +74,7 @@ public static byte[] getBytesUsAscii(String string) {
7774
* @return encoded bytes
7875
* @throws IllegalStateException
7976
* Thrown when the charset is missing, which should be never according the the Java specification.
80-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
81-
* encoding names </a>
77+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
8278
* @see #getSupportedBytes(String, String)
8379
*/
8480
public static byte[] getBytesUtf16(String string) {
@@ -94,8 +90,7 @@ public static byte[] getBytesUtf16(String string) {
9490
* @return encoded bytes
9591
* @throws IllegalStateException
9692
* Thrown when the charset is missing, which should be never according the the Java specification.
97-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
98-
* encoding names </a>
93+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
9994
* @see #getSupportedBytes(String, String)
10095
*/
10196
public static byte[] getBytesUtf16Be(String string) {
@@ -111,8 +106,7 @@ public static byte[] getBytesUtf16Be(String string) {
111106
* @return encoded bytes
112107
* @throws IllegalStateException
113108
* Thrown when the charset is missing, which should be never according the the Java specification.
114-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
115-
* encoding names </a>
109+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
116110
* @see #getSupportedBytes(String, String)
117111
*/
118112
public static byte[] getBytesUtf16Le(String string) {
@@ -128,8 +122,7 @@ public static byte[] getBytesUtf16Le(String string) {
128122
* @return encoded bytes
129123
* @throws IllegalStateException
130124
* Thrown when the charset is missing, which should be never according the the Java specification.
131-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
132-
* encoding names </a>
125+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
133126
* @see #getSupportedBytes(String, String)
134127
*/
135128
public static byte[] getBytesUtf8(String string) {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public BCodec() {
6464
* @param charset
6565
* the default string charset to use.
6666
*
67-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
68-
* encoding names</a>
67+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6968
*/
7069
public BCodec(final String charset) {
7170
super();

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ public QCodec() {
119119
* @param charset
120120
* the default string charset to use.
121121
*
122-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
123-
* encoding names</a>
122+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
124123
*/
125124
public QCodec(final String charset) {
126125
super();

src/java/org/apache/commons/codec/net/RFC1522Codec.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ abstract class RFC1522Codec {
6161
* process.
6262
* @throws UnsupportedEncodingException thrown if charset is not supported
6363
*
64-
* @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE character
65-
* encoding names</a>
64+
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6665
*/
6766
protected String encodeText(final String text, final String charset)
6867
throws EncoderException, UnsupportedEncodingException

0 commit comments

Comments
 (0)