Skip to content

Commit eed5803

Browse files
committed
Javadoc
1 parent 66706b4 commit eed5803

File tree

13 files changed

+39
-39
lines changed

13 files changed

+39
-39
lines changed

src/main/java/org/apache/commons/io/CopyUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static int copy(final InputStream input, final OutputStream output) throw
179179
* Copies and convert bytes from an {@link InputStream} to chars on a
180180
* {@link Writer}.
181181
* <p>
182-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset} for byte-to-char conversion.
182+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset} for byte-to-char conversion.
183183
* </p>
184184
*
185185
* @param input the {@link InputStream} to read from
@@ -221,7 +221,7 @@ public static void copy(
221221
* Serialize chars from a {@link Reader} to bytes on an
222222
* {@link OutputStream}, and flush the {@link OutputStream}.
223223
* <p>
224-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset} for byte-to-char conversion.
224+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset} for byte-to-char conversion.
225225
* </p>
226226
*
227227
* @param input the {@link Reader} to read from
@@ -293,7 +293,7 @@ public static int copy(
293293
* {@link OutputStream}, and
294294
* flush the {@link OutputStream}.
295295
* <p>
296-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset} for byte-to-char conversion.
296+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset} for byte-to-char conversion.
297297
* </p>
298298
*
299299
* @param input the {@link String} to read from

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,7 +2755,7 @@ public static byte[] readFileToByteArray(final File file) throws IOException {
27552755
}
27562756

27572757
/**
2758-
* 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
27592759
* file is always closed.
27602760
*
27612761
* @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)
28042804
}
28052805

28062806
/**
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}.
28082808
* The file is always closed.
28092809
*
28102810
* @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) {
32123212
}
32133213

32143214
/**
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}.
32163216
*
32173217
* @param file the file to write.
32183218
* @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
32263226
}
32273227

32283228
/**
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}.
32303230
*
32313231
* @param file the file to write.
32323232
* @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
35013501
}
35023502

35033503
/**
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}.
35053505
*
35063506
* @param file the file to write
35073507
* @param data the content to write to the file
@@ -3514,7 +3514,7 @@ public static void writeStringToFile(final File file, final String data) throws
35143514
}
35153515

35163516
/**
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}.
35183518
*
35193519
* @param file the file to write
35203520
* @param data the content to write to the file

src/main/java/org/apache/commons/io/HexDump.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static void dump(final byte[] data, final long offset,
169169
* data array are dumped.
170170
* </p>
171171
* <p>
172-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset}.
172+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
173173
* </p>
174174
*
175175
* @param data the byte array to be dumped

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ public static long copy(final InputStream inputStream, final OutputStream output
12691269

12701270
/**
12711271
* 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}.
12731273
* <p>
12741274
* This method buffers the input internally, so there is no need to use a
12751275
* {@link BufferedInputStream}.
@@ -1421,8 +1421,8 @@ public static long copy(final Reader reader, final Appendable output, final Char
14211421
}
14221422

14231423
/**
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.
14261426
* <p>
14271427
* This method buffers the input internally, so there is no need to use a {@link BufferedReader}.
14281428
* </p>
@@ -2319,7 +2319,7 @@ public static List<String> readLines(final CharSequence csq) throws UncheckedIOE
23192319

23202320
/**
23212321
* Gets the contents of an {@link InputStream} as a list of Strings,
2322-
* one entry per line, using the virtual machine's {@link Charset#defaultCharset() default charset}.
2322+
* one entry per line, using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
23232323
* <p>
23242324
* This method buffers the input internally, so there is no need to use a
23252325
* {@link BufferedInputStream}.
@@ -2967,7 +2967,7 @@ static byte[] toByteArray(final IOTriFunction<byte[], Integer, Integer, Integer>
29672967

29682968
/**
29692969
* Gets the contents of a {@link Reader} as a {@code byte[]}
2970-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
2970+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
29712971
* <p>
29722972
* This method buffers the input internally, so there is no need to use a
29732973
* {@link BufferedReader}.
@@ -3032,7 +3032,7 @@ public static byte[] toByteArray(final Reader reader, final String charsetName)
30323032

30333033
/**
30343034
* Gets the contents of a {@link String} as a {@code byte[]}
3035-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3035+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
30363036
* <p>
30373037
* This is the same as {@link String#getBytes()}.
30383038
* </p>
@@ -3093,7 +3093,7 @@ public static byte[] toByteArray(final URLConnection urlConnection) throws IOExc
30933093

30943094
/**
30953095
* Gets the contents of an {@link InputStream} as a character array
3096-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3096+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
30973097
* <p>
30983098
* This method buffers the input internally, so there is no need to use a
30993099
* {@link BufferedInputStream}.
@@ -3178,7 +3178,7 @@ public static char[] toCharArray(final Reader reader) throws IOException {
31783178

31793179
/**
31803180
* Converts the specified CharSequence to an input stream, encoded as bytes
3181-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3181+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
31823182
*
31833183
* @param input the CharSequence to convert.
31843184
* @return an input stream.
@@ -3223,7 +3223,7 @@ public static InputStream toInputStream(final CharSequence input, final String c
32233223

32243224
/**
32253225
* Converts the specified string to an input stream, encoded as bytes
3226-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3226+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
32273227
*
32283228
* @param input the string to convert.
32293229
* @return an input stream.
@@ -3268,7 +3268,7 @@ public static InputStream toInputStream(final String input, final String charset
32683268

32693269
/**
32703270
* Gets the contents of a {@code byte[]} as a String
3271-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3271+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
32723272
*
32733273
* @param input the byte array to read.
32743274
* @return the requested String.
@@ -3300,7 +3300,7 @@ public static String toString(final byte[] input, final String charsetName) {
33003300

33013301
/**
33023302
* Gets the contents of an {@link InputStream} as a String
3303-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3303+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
33043304
* <p>
33053305
* This method buffers the input internally, so there is no need to use a
33063306
* {@link BufferedInputStream}.
@@ -3429,7 +3429,7 @@ public static String toString(final Reader reader) throws IOException {
34293429
}
34303430

34313431
/**
3432-
* Gets the contents at the given URI using the virtual machine's {@link Charset#defaultCharset() default charset}.
3432+
* Gets the contents at the given URI using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
34333433
*
34343434
* @param uri The URI source.
34353435
* @return The contents of the URL as a String.
@@ -3470,7 +3470,7 @@ public static String toString(final URI uri, final String charsetName) throws IO
34703470
}
34713471

34723472
/**
3473-
* Gets the contents at the given URL using the virtual machine's {@link Charset#defaultCharset() default charset}.
3473+
* Gets the contents at the given URL using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
34743474
*
34753475
* @param url The URL source.
34763476
* @return The contents of the URL as a String.
@@ -3528,7 +3528,7 @@ public static void write(final byte[] data, final OutputStream output)
35283528

35293529
/**
35303530
* Writes bytes from a {@code byte[]} to chars on a {@link Writer}
3531-
* using the virtual machine's {@link Charset#defaultCharset() default charset}.
3531+
* using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
35323532
* <p>
35333533
* This method uses {@link String#String(byte[])}.
35343534
* </p>
@@ -3591,7 +3591,7 @@ public static void write(final byte[] data, final Writer writer, final String ch
35913591
/**
35923592
* Writes chars from a {@code char[]} to bytes on an {@link OutputStream}.
35933593
* <p>
3594-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset}.
3594+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
35953595
* </p>
35963596
*
35973597
* @param data the char array to write, do not modify during output, null ignored.
@@ -3742,7 +3742,7 @@ public static void write(final CharSequence data, final Writer writer) throws IO
37423742

37433743
/**
37443744
* Writes chars from a {@link String} to bytes on an
3745-
* {@link OutputStream} using the virtual machine's {@link Charset#defaultCharset() default charset}.
3745+
* {@link OutputStream} using the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
37463746
* <p>
37473747
* This method uses {@link String#getBytes()}.
37483748
* </p>
@@ -3941,7 +3941,7 @@ public static void writeChunked(final char[] data, final Writer writer) throws I
39413941

39423942
/**
39433943
* Writes the {@link #toString()} value of each item in a collection to an {@link OutputStream} line by line, using the virtual machine's
3944-
* {@link Charset#defaultCharset() default charset} and the specified line ending.
3944+
* {@linkplain Charset#defaultCharset() default charset} and the specified line ending.
39453945
*
39463946
* @param lines the lines to write, null entries produce blank lines.
39473947
* @param lineEnding the line separator to use, null is system default.

src/main/java/org/apache/commons/io/charset/CharsetDecoders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public final class CharsetDecoders {
3030
/**
3131
* Returns the given non-null CharsetDecoder or a new default CharsetDecoder.
3232
* <p>
33-
* Null input maps to the virtual machine's {@link Charset#defaultCharset() default charset} decoder.
33+
* Null input maps to the virtual machine's {@linkplain Charset#defaultCharset() default charset} decoder.
3434
* </p>
3535
*
3636
* @param charsetDecoder The CharsetDecoder to test.

src/main/java/org/apache/commons/io/charset/CharsetEncoders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public final class CharsetEncoders {
3131
/**
3232
* Returns the given non-null CharsetEncoder or a new default CharsetEncoder.
3333
* <p>
34-
* Null input maps to the virtual machine's {@link Charset#defaultCharset() default charset} decoder.
34+
* Null input maps to the virtual machine's {@linkplain Charset#defaultCharset() default charset} decoder.
3535
* </p>
3636
*
3737
* @param charsetEncoder The CharsetEncoder to test.

src/main/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public MagicNumberFileFilter(final String magicNumber) {
218218
* MagicNumberFileFilter tarFileFilter = MagicNumberFileFilter("ustar", 257);
219219
* </pre>
220220
* <p>
221-
* This method uses the virtual machine's {@link Charset#defaultCharset() default charset}.
221+
* This method uses the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
222222
* </p>
223223
*
224224
* @param magicNumber the magic number to look for in the file.

src/main/java/org/apache/commons/io/input/ReaderInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ private ReaderInputStream(final Builder builder) throws IOException {
225225
}
226226

227227
/**
228-
* 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.
230230
*
231231
* @param reader the target {@link Reader}
232232
* @deprecated Use {@link ReaderInputStream#builder()} instead

src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private ReversedLinesFileReader(final Builder builder) throws IOException {
354354
}
355355

356356
/**
357-
* Constructs a ReversedLinesFileReader with default block size of 4KB and the virtual machine's {@link Charset#defaultCharset() default charset}.
357+
* Constructs a ReversedLinesFileReader with default block size of 4KB and the virtual machine's {@linkplain Charset#defaultCharset() default charset}.
358358
*
359359
* @param file the file to be read
360360
* @throws IOException if an I/O error occurs.

src/main/java/org/apache/commons/io/input/Tailer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ public String toString() {
495495
private static final String RAF_READ_ONLY_MODE = "r";
496496

497497
/**
498-
* The the virtual machine's {@link Charset#defaultCharset() default charset} used for reading files.
498+
* The the virtual machine's {@linkplain Charset#defaultCharset() default charset} used for reading files.
499499
*/
500500
private static final Charset DEFAULT_CHARSET = Charset.defaultCharset();
501501

0 commit comments

Comments
 (0)