@@ -1112,7 +1112,7 @@ public static long copy(final InputStream inputStream, final OutputStream output
11121112
11131113 /**
11141114 * Copies bytes from an {@link InputStream} to chars on a
1115- * {@link Writer} using the default character encoding of the platform .
1115+ * {@link Writer} using the virtual machine's {@link Charset#defaultCharset() default charset} .
11161116 * <p>
11171117 * This method buffers the input internally, so there is no need to use a
11181118 * {@link BufferedInputStream}.
@@ -1268,8 +1268,8 @@ public static long copy(final Reader reader, final Appendable output, final Char
12681268
12691269 /**
12701270 * Copies chars from a {@link Reader} to bytes on an
1271- * {@link OutputStream} using the default character encoding of the
1272- * platform, and calling flush.
1271+ * {@link OutputStream} using the the virtual machine's {@link Charset#defaultCharset() default charset},
1272+ * and calling flush.
12731273 * <p>
12741274 * This method buffers the input internally, so there is no need to use a
12751275 * {@link BufferedReader}.
@@ -2173,7 +2173,7 @@ public static List<String> readLines(final CharSequence csq) throws UncheckedIOE
21732173
21742174 /**
21752175 * Gets the contents of an {@link InputStream} as a list of Strings,
2176- * one entry per line, using the default character encoding of the platform .
2176+ * one entry per line, using the virtual machine's {@link Charset#defaultCharset() default charset} .
21772177 * <p>
21782178 * This method buffers the input internally, so there is no need to use a
21792179 * {@link BufferedInputStream}.
@@ -2793,7 +2793,7 @@ static byte[] toByteArray(final IOTriFunction<byte[], Integer, Integer, Integer>
27932793
27942794 /**
27952795 * Gets the contents of a {@link Reader} as a {@code byte[]}
2796- * using the default character encoding of the platform .
2796+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
27972797 * <p>
27982798 * This method buffers the input internally, so there is no need to use a
27992799 * {@link BufferedReader}.
@@ -2858,7 +2858,7 @@ public static byte[] toByteArray(final Reader reader, final String charsetName)
28582858
28592859 /**
28602860 * Gets the contents of a {@link String} as a {@code byte[]}
2861- * using the default character encoding of the platform .
2861+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
28622862 * <p>
28632863 * This is the same as {@link String#getBytes()}.
28642864 * </p>
@@ -2919,7 +2919,7 @@ public static byte[] toByteArray(final URLConnection urlConnection) throws IOExc
29192919
29202920 /**
29212921 * Gets the contents of an {@link InputStream} as a character array
2922- * using the default character encoding of the platform .
2922+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
29232923 * <p>
29242924 * This method buffers the input internally, so there is no need to use a
29252925 * {@link BufferedInputStream}.
@@ -3004,7 +3004,7 @@ public static char[] toCharArray(final Reader reader) throws IOException {
30043004
30053005 /**
30063006 * Converts the specified CharSequence to an input stream, encoded as bytes
3007- * using the default character encoding of the platform .
3007+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
30083008 *
30093009 * @param input the CharSequence to convert
30103010 * @return an input stream
@@ -3049,7 +3049,7 @@ public static InputStream toInputStream(final CharSequence input, final String c
30493049
30503050 /**
30513051 * Converts the specified string to an input stream, encoded as bytes
3052- * using the default character encoding of the platform .
3052+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
30533053 *
30543054 * @param input the string to convert
30553055 * @return an input stream
@@ -3094,7 +3094,7 @@ public static InputStream toInputStream(final String input, final String charset
30943094
30953095 /**
30963096 * Gets the contents of a {@code byte[]} as a String
3097- * using the default character encoding of the platform .
3097+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
30983098 *
30993099 * @param input the byte array to read
31003100 * @return the requested String
@@ -3126,7 +3126,7 @@ public static String toString(final byte[] input, final String charsetName) {
31263126
31273127 /**
31283128 * Gets the contents of an {@link InputStream} as a String
3129- * using the default character encoding of the platform .
3129+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
31303130 * <p>
31313131 * This method buffers the input internally, so there is no need to use a
31323132 * {@link BufferedInputStream}.
@@ -3255,7 +3255,7 @@ public static String toString(final Reader reader) throws IOException {
32553255 }
32563256
32573257 /**
3258- * Gets the contents at the given URI.
3258+ * Gets the contents at the given URI using the virtual machine's {@link Charset#defaultCharset() default charset} .
32593259 *
32603260 * @param uri The URI source.
32613261 * @return The contents of the URL as a String.
@@ -3296,7 +3296,7 @@ public static String toString(final URI uri, final String charsetName) throws IO
32963296 }
32973297
32983298 /**
3299- * Gets the contents at the given URL.
3299+ * Gets the contents at the given URL using the virtual machine's {@link Charset#defaultCharset() default charset} .
33003300 *
33013301 * @param url The URL source.
33023302 * @return The contents of the URL as a String.
@@ -3355,7 +3355,7 @@ public static void write(final byte[] data, final OutputStream output)
33553355
33563356 /**
33573357 * Writes bytes from a {@code byte[]} to chars on a {@link Writer}
3358- * using the default character encoding of the platform .
3358+ * using the virtual machine's {@link Charset#defaultCharset() default charset} .
33593359 * <p>
33603360 * This method uses {@link String#String(byte[])}.
33613361 * </p>
@@ -3422,8 +3422,7 @@ public static void write(final byte[] data, final Writer writer, final String ch
34223422 * Writes chars from a {@code char[]} to bytes on an
34233423 * {@link OutputStream}.
34243424 * <p>
3425- * This method uses {@link String#String(char[])} and
3426- * {@link String#getBytes()}.
3425+ * This method uses the virtual machine's {@link Charset#defaultCharset() default charset}.
34273426 * </p>
34283427 *
34293428 * @param data the char array to write, do not modify during output,
@@ -3506,8 +3505,7 @@ public static void write(final char[] data, final Writer writer) throws IOExcept
35063505
35073506 /**
35083507 * Writes chars from a {@link CharSequence} to bytes on an
3509- * {@link OutputStream} using the default character encoding of the
3510- * platform.
3508+ * {@link OutputStream} using the virtual machine's {@link Charset#defaultCharset() default charset}.
35113509 * <p>
35123510 * This method uses {@link String#getBytes()}.
35133511 * </p>
@@ -3587,8 +3585,7 @@ public static void write(final CharSequence data, final Writer writer) throws IO
35873585
35883586 /**
35893587 * Writes chars from a {@link String} to bytes on an
3590- * {@link OutputStream} using the default character encoding of the
3591- * platform.
3588+ * {@link OutputStream} using the virtual machine's {@link Charset#defaultCharset() default charset}.
35923589 * <p>
35933590 * This method uses {@link String#getBytes()}.
35943591 * </p>
@@ -3789,8 +3786,8 @@ public static void writeChunked(final char[] data, final Writer writer) throws I
37893786
37903787 /**
37913788 * Writes the {@link #toString()} value of each item in a collection to
3792- * an {@link OutputStream} line by line, using the default character
3793- * encoding of the platform and the specified line ending.
3789+ * an {@link OutputStream} line by line, using the virtual machine's {@link Charset#defaultCharset() default charset}
3790+ * and the specified line ending.
37943791 *
37953792 * @param lines the lines to write, null entries produce blank lines
37963793 * @param lineEnding the line separator to use, null is system default
0 commit comments