2626
2727/**
2828 * Converts String to and from bytes using the encodings required by the Java specification. These encodings are
29- * specified in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">
30- * Standard charsets</a>.
29+ * specified in standard {@link Charset}.
3130 *
3231 * <p>This class is immutable and thread-safe.</p>
3332 *
3433 * @see CharEncoding
35- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
34+ * @see Charset
35+ * @see StandardCharsets
3636 * @since 1.4
3737 */
3838public class StringUtils {
@@ -106,7 +106,7 @@ private static ByteBuffer getByteBuffer(final String string, final Charset chars
106106 * @throws NullPointerException
107107 * Thrown if {@link StandardCharsets#UTF_8} is not initialized, which should never happen since it is
108108 * required by the Java platform specification.
109- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
109+ * @see Charset
110110 * @see #getBytesUnchecked(String, String)
111111 * @since 1.11
112112 */
@@ -138,7 +138,7 @@ private static byte[] getBytes(final String string, final Charset charset) {
138138 * Thrown if {@link StandardCharsets#ISO_8859_1} is not initialized, which should never happen
139139 * since it is required by the Java platform specification.
140140 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
141- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
141+ * @see Charset
142142 * @see #getBytesUnchecked(String, String)
143143 */
144144 public static byte [] getBytesIso8859_1 (final String string ) {
@@ -187,7 +187,7 @@ public static byte[] getBytesUnchecked(final String string, final String charset
187187 * Thrown if {@link StandardCharsets#US_ASCII} is not initialized, which should never happen since it is
188188 * required by the Java platform specification.
189189 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
190- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
190+ * @see Charset
191191 * @see #getBytesUnchecked(String, String)
192192 */
193193 public static byte [] getBytesUsAscii (final String string ) {
@@ -205,7 +205,7 @@ public static byte[] getBytesUsAscii(final String string) {
205205 * Thrown if {@link StandardCharsets#UTF_16} is not initialized, which should never happen since it is
206206 * required by the Java platform specification.
207207 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
208- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
208+ * @see Charset
209209 * @see #getBytesUnchecked(String, String)
210210 */
211211 public static byte [] getBytesUtf16 (final String string ) {
@@ -223,7 +223,7 @@ public static byte[] getBytesUtf16(final String string) {
223223 * Thrown if {@link StandardCharsets#UTF_16BE} is not initialized, which should never happen since it is
224224 * required by the Java platform specification.
225225 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
226- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
226+ * @see Charset
227227 * @see #getBytesUnchecked(String, String)
228228 */
229229 public static byte [] getBytesUtf16Be (final String string ) {
@@ -241,7 +241,7 @@ public static byte[] getBytesUtf16Be(final String string) {
241241 * Thrown if {@link StandardCharsets#UTF_16LE} is not initialized, which should never happen since it is
242242 * required by the Java platform specification.
243243 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
244- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
244+ * @see Charset
245245 * @see #getBytesUnchecked(String, String)
246246 */
247247 public static byte [] getBytesUtf16Le (final String string ) {
@@ -259,7 +259,7 @@ public static byte[] getBytesUtf16Le(final String string) {
259259 * Thrown if {@link StandardCharsets#UTF_8} is not initialized, which should never happen since it is
260260 * required by the Java platform specification.
261261 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
262- * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/ Charset.html">Standard charsets</a>
262+ * @see Charset
263263 * @see #getBytesUnchecked(String, String)
264264 */
265265 public static byte [] getBytesUtf8 (final String string ) {
0 commit comments