You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Reads the contents of a file into a String using the virtual machine's {@link Charset#defaultCharset() default charset}. The
2758
+
* Reads the contents of a file into a String using the virtual machine's {@linkplain Charset#defaultCharset() default charset}. The
2759
2759
* file is always closed.
2760
2760
*
2761
2761
* @param file the file to read, must not be {@code null}.
@@ -2804,7 +2804,7 @@ public static String readFileToString(final File file, final String charsetName)
2804
2804
}
2805
2805
2806
2806
/**
2807
-
* Reads the contents of a file line by line to a List of Strings using the virtual machine's {@link Charset#defaultCharset() default charset}.
2807
+
* Reads the contents of a file line by line to a List of Strings using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
2808
2808
* The file is always closed.
2809
2809
*
2810
2810
* @param file the file to read, must not be {@code null}.
@@ -3212,7 +3212,7 @@ public static boolean waitFor(final File file, final int seconds) {
3212
3212
}
3213
3213
3214
3214
/**
3215
-
* Writes a CharSequence to a file creating the file if it does not exist using the virtual machine's {@link Charset#defaultCharset() default charset}.
3215
+
* Writes a CharSequence to a file creating the file if it does not exist using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
3216
3216
*
3217
3217
* @param file the file to write.
3218
3218
* @param data the content to write to the file.
@@ -3226,7 +3226,7 @@ public static void write(final File file, final CharSequence data) throws IOExce
3226
3226
}
3227
3227
3228
3228
/**
3229
-
* Writes a CharSequence to a file creating the file if it does not exist using the virtual machine's {@link Charset#defaultCharset() default charset}.
3229
+
* Writes a CharSequence to a file creating the file if it does not exist using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
3230
3230
*
3231
3231
* @param file the file to write.
3232
3232
* @param data the content to write to the file.
@@ -3501,7 +3501,7 @@ public static void writeLines(final File file, final String charsetName, final C
3501
3501
}
3502
3502
3503
3503
/**
3504
-
* Writes a String to a file creating the file if it does not exist using the virtual machine's {@link Charset#defaultCharset() default charset}.
3504
+
* Writes a String to a file creating the file if it does not exist using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
3505
3505
*
3506
3506
* @param file the file to write
3507
3507
* @param data the content to write to the file
@@ -3514,7 +3514,7 @@ public static void writeStringToFile(final File file, final String data) throws
3514
3514
}
3515
3515
3516
3516
/**
3517
-
* Writes a String to a file creating the file if it does not exist using the virtual machine's {@link Charset#defaultCharset() default charset}.
3517
+
* Writes a String to a file creating the file if it does not exist using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/io/IOUtils.java
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1269,7 +1269,7 @@ public static long copy(final InputStream inputStream, final OutputStream output
1269
1269
1270
1270
/**
1271
1271
* Copies bytes from an {@link InputStream} to chars on a
1272
-
* {@link Writer} using the virtual machine's {@link Charset#defaultCharset() default charset}.
1272
+
* {@link Writer} using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
1273
1273
* <p>
1274
1274
* This method buffers the input internally, so there is no need to use a
1275
1275
* {@link BufferedInputStream}.
@@ -1421,8 +1421,8 @@ public static long copy(final Reader reader, final Appendable output, final Char
1421
1421
}
1422
1422
1423
1423
/**
1424
-
* Copies chars from a {@link Reader} to bytes on an {@link OutputStream} using the the virtual machine's {@link Charset#defaultCharset() default charset},
1425
-
* and calling flush.
1424
+
* Copies chars from a {@link Reader} to bytes on an {@link OutputStream} using the the virtual machine's {@linkplain Charset#defaultCharset() default
1425
+
* charset}, and calling flush.
1426
1426
* <p>
1427
1427
* This method buffers the input internally, so there is no need to use a {@link BufferedReader}.
* Constructs a new {@link ReaderInputStream} that uses the virtual machine's {@link Charset#defaultCharset() default charset} with a default input buffer
229
-
* size of {@value IOUtils#DEFAULT_BUFFER_SIZE} characters.
228
+
* Constructs a new {@link ReaderInputStream} that uses the virtual machine's {@linkplain Charset#defaultCharset() default charset} with a default input
229
+
* buffer size of {@value IOUtils#DEFAULT_BUFFER_SIZE} characters.
230
230
*
231
231
* @param reader the target {@link Reader}
232
232
* @deprecated Use {@link ReaderInputStream#builder()} instead
0 commit comments