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 ) {
0 commit comments