This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new 23b4ec6b9 Javadoc: Use semantic tag <strong> instead of style tag <b>
23b4ec6b9 is described below
commit 23b4ec6b9b787b23db96366190c2fadf35628a9a
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 15 11:19:01 2024 -0500
Javadoc: Use semantic tag <strong> instead of style tag <b>
---
src/main/java/org/apache/commons/io/DirectoryWalker.java | 2 +-
src/main/java/org/apache/commons/io/FileUtils.java | 12 ++++++------
src/main/java/org/apache/commons/io/FilenameUtils.java | 10 +++++-----
src/main/java/org/apache/commons/io/IOUtils.java | 4 ++--
src/main/java/org/apache/commons/io/StreamIterator.java | 2 +-
.../apache/commons/io/comparator/DefaultFileComparator.java | 2 +-
.../commons/io/comparator/ExtensionFileComparator.java | 2 +-
.../commons/io/comparator/LastModifiedFileComparator.java | 2 +-
.../apache/commons/io/comparator/NameFileComparator.java | 2 +-
.../apache/commons/io/comparator/PathFileComparator.java | 2 +-
.../apache/commons/io/comparator/SizeFileComparator.java | 4 ++--
.../org/apache/commons/io/filefilter/AgeFileFilter.java | 12 ++++++------
.../apache/commons/io/filefilter/CanWriteFileFilter.java | 2 +-
.../apache/commons/io/filefilter/DirectoryFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/EmptyFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/FileFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/HiddenFileFilter.java | 4 ++--
.../apache/commons/io/filefilter/MagicNumberFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/NameFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/PrefixFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/RegexFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/SizeFileFilter.java | 12 ++++++------
.../org/apache/commons/io/filefilter/SuffixFileFilter.java | 4 ++--
.../commons/io/filefilter/SymbolicLinkFileFilter.java | 4 ++--
.../apache/commons/io/filefilter/WildcardFileFilter.java | 4 ++--
.../org/apache/commons/io/filefilter/WildcardFilter.java | 4 ++--
.../java/org/apache/commons/io/filefilter/package-info.java | 6 +++---
.../java/org/apache/commons/io/input/ByteBufferCleaner.java | 2 +-
.../java/org/apache/commons/io/input/TailerListener.java | 8 ++++----
.../org/apache/commons/io/input/TailerListenerAdapter.java | 2 +-
.../org/apache/commons/io/output/LockableFileWriter.java | 4 ++--
.../java/org/apache/commons/io/output/NullAppendable.java | 2 +-
.../io/output/UnsynchronizedByteArrayOutputStream.java | 2 +-
src/main/java/org/apache/commons/io/package-info.java | 13 +++++++------
34 files changed, 79 insertions(+), 78 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/DirectoryWalker.java
b/src/main/java/org/apache/commons/io/DirectoryWalker.java
index 62298a50c..1a0fdc2ba 100644
--- a/src/main/java/org/apache/commons/io/DirectoryWalker.java
+++ b/src/main/java/org/apache/commons/io/DirectoryWalker.java
@@ -215,7 +215,7 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
* <h3 id="internal">3.2 Internal</h3>
*
* <p>
- * This shows an example of how internal cancellation processing could be
implemented. <b>Note</b> the decision logic
+ * This shows an example of how internal cancellation processing could be
implemented. <strong>Note</strong> the decision logic
* and throwing a {@link CancelException} could be implemented in any of the
<em>lifecycle</em> methods.
* </p>
*
diff --git a/src/main/java/org/apache/commons/io/FileUtils.java
b/src/main/java/org/apache/commons/io/FileUtils.java
index d9ce9a3e7..4e61ed7a2 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -586,14 +586,14 @@ public class FileUtils {
* {@link File#setLastModified(long)}. However it is not guaranteed that
those operations will succeed. If the
* modification operation fails, the method throws IOException.
* </p>
- * <b>Example: Copy directories only</b>
+ * <strong>Example: Copy directories only</strong>
*
* <pre>
* // only copy the directory structure
* FileUtils.copyDirectory(srcDir, destDir, DirectoryFileFilter.DIRECTORY);
* </pre>
*
- * <b>Example: Copy directories and txt files</b>
+ * <strong>Example: Copy directories and txt files</strong>
*
* <pre>
* // Create a filter for ".txt" files
@@ -637,14 +637,14 @@ public class FileUtils {
* not guaranteed that the operation will succeed. If the modification
operation fails it falls back to
* {@link File#setLastModified(long)}. If that fails, the method throws
IOException.
* </p>
- * <b>Example: Copy directories only</b>
+ * <strong>Example: Copy directories only</strong>
*
* <pre>
* // only copy the directory structure
* FileUtils.copyDirectory(srcDir, destDir, DirectoryFileFilter.DIRECTORY,
false);
* </pre>
*
- * <b>Example: Copy directories and txt files</b>
+ * <strong>Example: Copy directories and txt files</strong>
*
* <pre>
* // Create a filter for ".txt" files
@@ -688,14 +688,14 @@ public class FileUtils {
* not guaranteed that the operation will succeed. If the modification
operation fails it falls back to
* {@link File#setLastModified(long)}. If that fails, the method throws
IOException.
* </p>
- * <b>Example: Copy directories only</b>
+ * <strong>Example: Copy directories only</strong>
*
* <pre>
* // only copy the directory structure
* FileUtils.copyDirectory(srcDir, destDir, DirectoryFileFilter.DIRECTORY,
false);
* </pre>
*
- * <b>Example: Copy directories and txt files</b>
+ * <strong>Example: Copy directories and txt files</strong>
*
* <pre>
* // Create a filter for ".txt" files
diff --git a/src/main/java/org/apache/commons/io/FilenameUtils.java
b/src/main/java/org/apache/commons/io/FilenameUtils.java
index 508f2da90..9fdbc7392 100644
--- a/src/main/java/org/apache/commons/io/FilenameUtils.java
+++ b/src/main/java/org/apache/commons/io/FilenameUtils.java
@@ -37,7 +37,7 @@ import java.util.stream.Stream;
* This class aims to help avoid those problems.
* </p>
* <p>
- * <b>NOTE</b>: You may be able to avoid using this class entirely simply by
+ * <strong>NOTE</strong>: You may be able to avoid using this class entirely
simply by
* using JDK {@link File File} objects and the two argument constructor
* {@link File#File(java.io.File, String) File(File,String)}.
* </p>
@@ -634,7 +634,7 @@ public class FilenameUtils {
* exception of a possible {@link IllegalArgumentException} on Windows
(see below).
* </p>
* <p>
- * <b>Note:</b> This method used to have a hidden problem for names like
"foo.exe:bar.txt".
+ * <strong>Note:</strong> This method used to have a hidden problem for
names like "foo.exe:bar.txt".
* In this case, the name wouldn't be the name of a file, but the
identifier of an
* alternate data stream (bar.txt) on the file foo.exe. The method used to
return
* ".txt" here, which would be misleading. Commons IO 2.7 and later throw
@@ -644,7 +644,7 @@ public class FilenameUtils {
* @param fileName the file name to retrieve the extension of.
* @return the extension of the file or an empty string if none exists or
{@code null}
* if the file name is {@code null}.
- * @throws IllegalArgumentException <b>Windows only:</b> the file name
parameter is, in fact,
+ * @throws IllegalArgumentException <strong>Windows only:</strong> the
file name parameter is, in fact,
* the identifier of an Alternate Data Stream, for example
"foo.exe:bar.txt".
*/
public static String getExtension(final String fileName) throws
IllegalArgumentException {
@@ -972,7 +972,7 @@ public class FilenameUtils {
* The output will be the same irrespective of the machine that the code
is running on, with the
* exception of a possible {@link IllegalArgumentException} on Windows
(see below).
* </p>
- * <b>Note:</b> This method used to have a hidden problem for names like
"foo.exe:bar.txt".
+ * <strong>Note:</strong> This method used to have a hidden problem for
names like "foo.exe:bar.txt".
* In this case, the name wouldn't be the name of a file, but the
identifier of an
* alternate data stream (bar.txt) on the file foo.exe. The method used to
return
* ".txt" here, which would be misleading. Commons IO 2.7, and later
versions, are throwing
@@ -981,7 +981,7 @@ public class FilenameUtils {
* @param fileName
* the file name to find the last extension separator in, null
returns -1
* @return the index of the last extension separator character, or -1 if
there is no such character
- * @throws IllegalArgumentException <b>Windows only:</b> the file name
parameter is, in fact,
+ * @throws IllegalArgumentException <strong>Windows only:</strong> the
file name parameter is, in fact,
* the identifier of an Alternate Data Stream, for example
"foo.exe:bar.txt".
*/
public static int indexOfExtension(final String fileName) throws
IllegalArgumentException {
diff --git a/src/main/java/org/apache/commons/io/IOUtils.java
b/src/main/java/org/apache/commons/io/IOUtils.java
index 72bc4c4ca..2c420d070 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -545,7 +545,7 @@ public class IOUtils {
* } catch (Exception e) {
* // error handling
* } finally {
- * <b>IOUtils.closeQuietly(closeable); // In case normal close was
skipped due to Exception</b>
+ * <strong>IOUtils.closeQuietly(closeable); // In case normal close
was skipped due to Exception</strong>
* }
* </pre>
* <p>
@@ -2743,7 +2743,7 @@ public class IOUtils {
* Gets contents of an {@link InputStream} as a {@code byte[]}.
* Use this method instead of {@link #toByteArray(InputStream)}
* when {@link InputStream} size is known.
- * <b>NOTE:</b> the method checks that the length can safely be cast to an
int without truncation
+ * <strong>NOTE:</strong> the method checks that the length can safely be
cast to an int without truncation
* before using {@link IOUtils#toByteArray(InputStream, int)} to read into
the byte array.
* (Arrays can have no more than Integer.MAX_VALUE entries anyway)
*
diff --git a/src/main/java/org/apache/commons/io/StreamIterator.java
b/src/main/java/org/apache/commons/io/StreamIterator.java
index 23465657b..1df839a73 100644
--- a/src/main/java/org/apache/commons/io/StreamIterator.java
+++ b/src/main/java/org/apache/commons/io/StreamIterator.java
@@ -37,7 +37,7 @@ public final class StreamIterator<E> implements Iterator<E>,
AutoCloseable {
/**
* Wraps and presents a stream as a closable resource that automatically
closes itself when reaching the end of stream.
* <p>
- * <b>Warning</b>
+ * <strong>Warning</strong>
* </p>
* <p>
* In order to close the stream, the call site MUST either close the
stream it allocated OR call this iterator until the end.
diff --git
a/src/main/java/org/apache/commons/io/comparator/DefaultFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/DefaultFileComparator.java
index b8d50edfe..ca0fcb39a 100644
--- a/src/main/java/org/apache/commons/io/comparator/DefaultFileComparator.java
+++ b/src/main/java/org/apache/commons/io/comparator/DefaultFileComparator.java
@@ -21,7 +21,7 @@ import java.io.Serializable;
import java.util.Comparator;
/**
- * Compares two files using the <b>default</b> {@link File#compareTo(File)}
method.
+ * Compares two files using the <strong>default</strong> {@link
File#compareTo(File)} method.
* <p>
* This comparator can be used to sort lists or arrays of files
* by using the default file comparison.
diff --git
a/src/main/java/org/apache/commons/io/comparator/ExtensionFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/ExtensionFileComparator.java
index be56c8bec..a0b11a694 100644
---
a/src/main/java/org/apache/commons/io/comparator/ExtensionFileComparator.java
+++
b/src/main/java/org/apache/commons/io/comparator/ExtensionFileComparator.java
@@ -24,7 +24,7 @@ import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOCase;
/**
- * Compare the file name <b>extensions</b> for order
+ * Compare the file name <strong>extensions</strong> for order
* (see {@link FilenameUtils#getExtension(String)}).
* <p>
* This comparator can be used to sort lists or arrays of files
diff --git
a/src/main/java/org/apache/commons/io/comparator/LastModifiedFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/LastModifiedFileComparator.java
index be7652897..26f1bc6e6 100644
---
a/src/main/java/org/apache/commons/io/comparator/LastModifiedFileComparator.java
+++
b/src/main/java/org/apache/commons/io/comparator/LastModifiedFileComparator.java
@@ -23,7 +23,7 @@ import java.util.Comparator;
import org.apache.commons.io.FileUtils;
/**
- * Compare the <b>last modified date/time</b> of two files for order
+ * Compare the <strong>last modified date/time</strong> of two files for order
* (see {@link FileUtils#lastModifiedUnchecked(File)}).
* <p>
* This comparator can be used to sort lists or arrays of files
diff --git
a/src/main/java/org/apache/commons/io/comparator/NameFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/NameFileComparator.java
index 4e2167bdf..0001c7a3c 100644
--- a/src/main/java/org/apache/commons/io/comparator/NameFileComparator.java
+++ b/src/main/java/org/apache/commons/io/comparator/NameFileComparator.java
@@ -23,7 +23,7 @@ import java.util.Comparator;
import org.apache.commons.io.IOCase;
/**
- * Compare the <b>names</b> of two files for order (see {@link
File#getName()}).
+ * Compare the <strong>names</strong> of two files for order (see {@link
File#getName()}).
* <p>
* This comparator can be used to sort lists or arrays of files
* by their name either in a case-sensitive, case-insensitive or
diff --git
a/src/main/java/org/apache/commons/io/comparator/PathFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/PathFileComparator.java
index 86432efb8..3254cc322 100644
--- a/src/main/java/org/apache/commons/io/comparator/PathFileComparator.java
+++ b/src/main/java/org/apache/commons/io/comparator/PathFileComparator.java
@@ -23,7 +23,7 @@ import java.util.Comparator;
import org.apache.commons.io.IOCase;
/**
- * Compare the <b>path</b> of two files for order (see {@link File#getPath()}).
+ * Compare the <strong>path</strong> of two files for order (see {@link
File#getPath()}).
* <p>
* This comparator can be used to sort lists or arrays of files
* by their path either in a case-sensitive, case-insensitive or
diff --git
a/src/main/java/org/apache/commons/io/comparator/SizeFileComparator.java
b/src/main/java/org/apache/commons/io/comparator/SizeFileComparator.java
index 804563473..f7eac0857 100644
--- a/src/main/java/org/apache/commons/io/comparator/SizeFileComparator.java
+++ b/src/main/java/org/apache/commons/io/comparator/SizeFileComparator.java
@@ -23,7 +23,7 @@ import java.util.Comparator;
import org.apache.commons.io.FileUtils;
/**
- * Compare the <b>length/size</b> of two files for order (see
+ * Compare the <strong>length/size</strong> of two files for order (see
* {@link File#length()} and {@link FileUtils#sizeOfDirectory(File)}).
* <p>
* This comparator can be used to sort lists or arrays of files
@@ -46,7 +46,7 @@ import org.apache.commons.io.FileUtils;
* ((AbstractFileComparator)
SizeFileComparator.SIZE_REVERSE).sort(array);
* </pre>
* <p>
- * <strong>N.B.</strong> Directories are treated as <b>zero size</b> unless
+ * <strong>N.B.</strong> Directories are treated as <strong>zero size</strong>
unless
* {@code sumDirectoryContents} is {@code true}.
* </p>
* <h2>Deprecating Serialization</h2>
diff --git a/src/main/java/org/apache/commons/io/filefilter/AgeFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/AgeFileFilter.java
index c8508e18e..8601cbaa6 100644
--- a/src/main/java/org/apache/commons/io/filefilter/AgeFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/AgeFileFilter.java
@@ -51,14 +51,14 @@ import org.apache.commons.io.file.PathUtils;
* AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new AgeFileFilter(cutoff));
* //
* // Walk one directoryectory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
@@ -175,8 +175,8 @@ public class AgeFileFilter extends AbstractFileFilter
implements Serializable {
/**
* Checks to see if the last modification of the file matches cutoff
favorably.
* <p>
- * If last modification time equals cutoff and newer files are required,
file <b>IS NOT</b> selected. If last
- * modification time equals cutoff and older files are required, file
<b>IS</b> selected.
+ * If last modification time equals cutoff and newer files are required,
file <strong>IS NOT</strong> selected. If last
+ * modification time equals cutoff and older files are required, file
<strong>IS</strong> selected.
* </p>
*
* @param file the File to check
@@ -190,8 +190,8 @@ public class AgeFileFilter extends AbstractFileFilter
implements Serializable {
/**
* Checks to see if the last modification of the file matches cutoff
favorably.
* <p>
- * If last modification time equals cutoff and newer files are required,
file <b>IS NOT</b> selected. If last
- * modification time equals cutoff and older files are required, file
<b>IS</b> selected.
+ * If last modification time equals cutoff and newer files are required,
file <strong>IS NOT</strong> selected. If last
+ * modification time equals cutoff and older files are required, file
<strong>IS</strong> selected.
* </p>
*
* @param file the File to check
diff --git
a/src/main/java/org/apache/commons/io/filefilter/CanWriteFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/CanWriteFileFilter.java
index 7a2d8c2a7..343fd99a1 100644
--- a/src/main/java/org/apache/commons/io/filefilter/CanWriteFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/CanWriteFileFilter.java
@@ -47,7 +47,7 @@ import java.nio.file.attribute.BasicFileAttributes;
* }
* </pre>
* <p>
- * <b>N.B.</b> For read-only files, use {@code CanReadFileFilter.READ_ONLY}.
+ * <strong>N.B.</strong> For read-only files, use {@code
CanReadFileFilter.READ_ONLY}.
* </p>
* <h2>Deprecating Serialization</h2>
* <p>
diff --git
a/src/main/java/org/apache/commons/io/filefilter/DirectoryFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/DirectoryFileFilter.java
index 9bb2555d8..4a8fdcf3b 100644
--- a/src/main/java/org/apache/commons/io/filefilter/DirectoryFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/DirectoryFileFilter.java
@@ -45,14 +45,14 @@ import java.nio.file.attribute.BasicFileAttributes;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(DirectoryFileFilter.INSTANCE);
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/EmptyFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/EmptyFileFilter.java
index 50c3c461f..33b843434 100644
--- a/src/main/java/org/apache/commons/io/filefilter/EmptyFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/EmptyFileFilter.java
@@ -61,14 +61,14 @@ import org.apache.commons.io.IOUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(EmptyFileFilter.EMPTY);
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/filefilter/FileFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/FileFileFilter.java
index 192467681..4277dce16 100644
--- a/src/main/java/org/apache/commons/io/filefilter/FileFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/FileFileFilter.java
@@ -44,14 +44,14 @@ import java.nio.file.attribute.BasicFileAttributes;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(FileFileFilter.INSTANCE);
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/HiddenFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/HiddenFileFilter.java
index 2cd9e8c73..963b9057b 100644
--- a/src/main/java/org/apache/commons/io/filefilter/HiddenFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/HiddenFileFilter.java
@@ -57,14 +57,14 @@ import java.nio.file.attribute.BasicFileAttributes;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(HiddenFileFilter.HIDDEN);
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java
index 660fb28cd..6956bc8d2 100644
--- a/src/main/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java
@@ -72,14 +72,14 @@ import org.apache.commons.io.RandomAccessFiles;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(MagicNumberFileFilter("ustar", 257));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/filefilter/NameFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/NameFileFilter.java
index 6356b9c4a..2fa2cb539 100644
--- a/src/main/java/org/apache/commons/io/filefilter/NameFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/NameFileFilter.java
@@ -49,14 +49,14 @@ import org.apache.commons.io.file.PathUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new NameFileFilter("Test"));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
index fd463bbda..7c8d4c4a5 100644
--- a/src/main/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
@@ -49,14 +49,14 @@ import org.apache.commons.io.file.PathUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new PrefixFileFilter("Test"));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/RegexFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/RegexFileFilter.java
index 03b031f36..e94113215 100644
--- a/src/main/java/org/apache/commons/io/filefilter/RegexFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/RegexFileFilter.java
@@ -53,14 +53,14 @@ import org.apache.commons.io.file.PathUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new
RegexFileFilter("^.*[tT]est(-\\d+)?\\.java$"));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/filefilter/SizeFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/SizeFileFilter.java
index e95a3bbd3..f9b68974d 100644
--- a/src/main/java/org/apache/commons/io/filefilter/SizeFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/SizeFileFilter.java
@@ -46,14 +46,14 @@ import java.nio.file.attribute.BasicFileAttributes;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new SizeFileFilter(1024 * 1024));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
@@ -110,9 +110,9 @@ public class SizeFileFilter extends AbstractFileFilter
implements Serializable {
* Checks to see if the size of the file is favorable.
* <p>
* If size equals threshold and smaller files are required,
- * file <b>IS NOT</b> selected.
+ * file <strong>IS NOT</strong> selected.
* If size equals threshold and larger files are required,
- * file <b>IS</b> selected.
+ * file <strong>IS</strong> selected.
* </p>
*
* @param file the File to check
@@ -130,8 +130,8 @@ public class SizeFileFilter extends AbstractFileFilter
implements Serializable {
/**
* Checks to see if the size of the file is favorable.
* <p>
- * If size equals threshold and smaller files are required, file <b>IS
NOT</b> selected. If size equals threshold and larger files are required, file
- * <b>IS</b> selected.
+ * If size equals threshold and smaller files are required, file
<strong>IS NOT</strong> selected. If size equals threshold and larger files are
required,
+ * file <strong>IS</strong> selected.
* </p>
*
* @param file the File to check
diff --git
a/src/main/java/org/apache/commons/io/filefilter/SuffixFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/SuffixFileFilter.java
index dc9cc2bda..8823c24a1 100644
--- a/src/main/java/org/apache/commons/io/filefilter/SuffixFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/SuffixFileFilter.java
@@ -50,14 +50,14 @@ import org.apache.commons.io.file.PathUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new SuffixFileFilter(".java"));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/SymbolicLinkFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/SymbolicLinkFileFilter.java
index 4a8599f2e..a0867f0fa 100644
--- a/src/main/java/org/apache/commons/io/filefilter/SymbolicLinkFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/SymbolicLinkFileFilter.java
@@ -44,14 +44,14 @@ import java.nio.file.attribute.BasicFileAttributes;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(SymbolicLinkFileFilter.INSTANCE);
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git
a/src/main/java/org/apache/commons/io/filefilter/WildcardFileFilter.java
b/src/main/java/org/apache/commons/io/filefilter/WildcardFileFilter.java
index c1c456ce9..6ee4db921 100644
--- a/src/main/java/org/apache/commons/io/filefilter/WildcardFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/WildcardFileFilter.java
@@ -64,14 +64,14 @@ import org.apache.commons.io.file.PathUtils;
* WildcardFileFilter.builder().setWildcards("*test*.java~*~").get());
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/filefilter/WildcardFilter.java
b/src/main/java/org/apache/commons/io/filefilter/WildcardFilter.java
index c6ffdf6d7..a9350b13f 100644
--- a/src/main/java/org/apache/commons/io/filefilter/WildcardFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/WildcardFilter.java
@@ -61,14 +61,14 @@ import org.apache.commons.io.file.PathUtils;
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new WildcardFilter("*test*.java~*~"));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/filefilter/package-info.java
b/src/main/java/org/apache/commons/io/filefilter/package-info.java
index baf62c744..8114b4de0 100644
--- a/src/main/java/org/apache/commons/io/filefilter/package-info.java
+++ b/src/main/java/org/apache/commons/io/filefilter/package-info.java
@@ -148,7 +148,7 @@
* }
* </pre>
* <h2>Using NIO</h2>
- * <p>You can combine Java <b>file tree walking</b> by using
<code>java.nio.file.Files.walk()</code> APIs with filters:</p>
+ * <p>You can combine Java <strong>file tree walking</strong> by using
<code>java.nio.file.Files.walk()</code> APIs with filters:</p>
* <pre>
* final Path dir = Paths.get("");
* // We are interested in files older than one day
@@ -156,14 +156,14 @@
* final AccumulatorPathVisitor visitor =
AccumulatorPathVisitor.withLongCounters(new AgeFileFilter(cutoff));
* //
* // Walk one directory
- * Files.<b>walkFileTree</b>(dir, Collections.emptySet(), 1, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, Collections.emptySet(), 1,
visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getFileList());
* //
* visitor.getPathCounters().reset();
* //
* // Walk directory tree
- * Files.<b>walkFileTree</b>(dir, visitor);
+ * Files.<strong>walkFileTree</strong>(dir, visitor);
* System.out.println(visitor.getPathCounters());
* System.out.println(visitor.getDirList());
* System.out.println(visitor.getFileList());
diff --git a/src/main/java/org/apache/commons/io/input/ByteBufferCleaner.java
b/src/main/java/org/apache/commons/io/input/ByteBufferCleaner.java
index 055beb2ee..6126b2a53 100644
--- a/src/main/java/org/apache/commons/io/input/ByteBufferCleaner.java
+++ b/src/main/java/org/apache/commons/io/input/ByteBufferCleaner.java
@@ -25,7 +25,7 @@ import java.nio.ByteBuffer;
* garbage collection. However, this should not be relied upon since it may
not occur in a timely fashion -
* especially since off heap ByeBuffers don't put pressure on the garbage
collector.
* <p>
- * <b>Warning:</b> Do not attempt to use a direct {@link ByteBuffer} that has
been cleaned or bad things will happen.
+ * <strong>Warning:</strong> Do not attempt to use a direct {@link ByteBuffer}
that has been cleaned or bad things will happen.
* Don't use this class unless you can ensure that the cleaned buffer will not
be accessed anymore.
* </p>
* <p>
diff --git a/src/main/java/org/apache/commons/io/input/TailerListener.java
b/src/main/java/org/apache/commons/io/input/TailerListener.java
index ae8668540..4c4c1ec22 100644
--- a/src/main/java/org/apache/commons/io/input/TailerListener.java
+++ b/src/main/java/org/apache/commons/io/input/TailerListener.java
@@ -26,7 +26,7 @@ public interface TailerListener {
/**
* This method is called if the tailed file is not found.
* <p>
- * <b>Note:</b> this is called from the tailer thread.
+ * <strong>Note:</strong> this is called from the tailer thread.
* </p>
*/
void fileNotFound();
@@ -37,7 +37,7 @@ public interface TailerListener {
* This method is called before the file is reopened, and fileNotFound may
* be called if the new file has not yet been created.
* <p>
- * <b>Note:</b> this is called from the tailer thread.
+ * <strong>Note:</strong> this is called from the tailer thread.
* </p>
*/
void fileRotated();
@@ -45,7 +45,7 @@ public interface TailerListener {
/**
* Handles an Exception.
* <p>
- * <b>Note:</b> this is called from the tailer thread.
+ * <strong>Note:</strong> this is called from the tailer thread.
* </p>
* @param ex the exception.
*/
@@ -54,7 +54,7 @@ public interface TailerListener {
/**
* Handles a line from a Tailer.
* <p>
- * <b>Note:</b> this is called from the tailer thread.
+ * <strong>Note:</strong> this is called from the tailer thread.
* </p>
* @param line the line.
*/
diff --git
a/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
b/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
index 6b8760cbe..51b7d9c37 100644
--- a/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
+++ b/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
@@ -26,7 +26,7 @@ public class TailerListenerAdapter implements TailerListener {
/**
* Called each time the Tailer reaches the end of the file.
*
- * <b>Note:</b> this is called from the tailer thread.
+ * <strong>Note:</strong> this is called from the tailer thread.
*
* Note: a future version of commons-io will pull this method up to the
TailerListener interface,
* for now clients must subclass this class to use this feature.
diff --git a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
index ee1a2dcb0..6032f04bb 100644
--- a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
+++ b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
@@ -37,8 +37,8 @@ import org.apache.commons.io.build.AbstractStreamBuilder;
* This class provides a simple alternative to {@link FileWriter} that will
use a lock file to prevent duplicate writes.
* </p>
* <p>
- * <b>Note:</b> The lock file is deleted when {@link #close()} is called - or
if the main file cannot be opened initially. In the (unlikely) event that the
lock
- * file cannot be deleted, an exception is thrown.
+ * <strong>Note:</strong> The lock file is deleted when {@link #close()} is
called - or if the main file cannot be opened initially. In the (unlikely) event
+ * that the lock file cannot be deleted, an exception is thrown.
* </p>
* <p>
* By default, the file will be overwritten, but this may be changed to
append. The lock directory may be specified, but defaults to the system property
diff --git a/src/main/java/org/apache/commons/io/output/NullAppendable.java
b/src/main/java/org/apache/commons/io/output/NullAppendable.java
index 14ed4fab2..40889f4c9 100644
--- a/src/main/java/org/apache/commons/io/output/NullAppendable.java
+++ b/src/main/java/org/apache/commons/io/output/NullAppendable.java
@@ -20,7 +20,7 @@ package org.apache.commons.io.output;
import java.io.IOException;
/**
- * Appends all data to the famous <b>/dev/null</b>.
+ * Appends all data to the famous <strong>/dev/null</strong>.
* <p>
* This Appendable has no destination (file/socket etc.) and all characters
written to it are ignored and lost.
* </p>
diff --git
a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
index 31e14aab5..cd0b231fa 100644
---
a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
+++
b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
@@ -27,7 +27,7 @@ import org.apache.commons.io.function.Uncheck;
import org.apache.commons.io.input.UnsynchronizedByteArrayInputStream;
/**
- * Implements a version of {@link AbstractByteArrayOutputStream}
<b>without</b> any concurrent thread safety.
+ * Implements a version of {@link AbstractByteArrayOutputStream}
<strong>without</strong> any concurrent thread safety.
* <p>
* To build an instance, use {@link Builder}.
* </p>
diff --git a/src/main/java/org/apache/commons/io/package-info.java
b/src/main/java/org/apache/commons/io/package-info.java
index 6633c106f..25cfe2441 100644
--- a/src/main/java/org/apache/commons/io/package-info.java
+++ b/src/main/java/org/apache/commons/io/package-info.java
@@ -18,20 +18,21 @@
/**
* Provides classes for working with streams, readers, writers and files. The
most commonly used classes are described here:
* <p>
- * <b>IOUtils</b> is the most frequently used class. It provides operations to
read, write, copy and close streams.
+ * <strong>IOUtils</strong> is the most frequently used class. It provides
operations to read, write, copy and close streams.
* </p>
* <p>
- * <b>FileUtils</b> provides operations based around the JDK File class. These
include reading, writing, copying, comparing and deleting.
+ * <strong>FileUtils</strong> provides operations based around the JDK File
class. These include reading, writing, copying, comparing and deleting.
* </p>
* <p>
- * <b>FilenameUtils</b> provides utilities based on filenames. This utility
class manipulates file names without using File objects. It aims to simplify the
- * transition between Windows and Unix. Before using this class however, you
should consider whether you should be using File objects.
+ * <strong>FilenameUtils</strong> provides utilities based on filenames. This
utility class manipulates file names without using File objects. It aims to
+ * simplify the transition between Windows and Unix. Before using this class
however, you should consider whether you should be using File objects.
* </p>
* <p>
- * <b>FileSystemUtils</b> allows access to the filing system in ways the JDK
does not support. At present this allows you to get the free space on a drive.
+ * <strong>FileSystemUtils</strong> allows access to the filing system in ways
the JDK does not support. At present this allows you to get the free space on a
+ * drive.
* </p>
* <p>
- * <b>EndianUtils</b> swaps data between Big-Endian and Little-Endian formats.
+ * <strong>EndianUtils</strong> swaps data between Big-Endian and
Little-Endian formats.
* </p>
*/
package org.apache.commons.io;