@@ -2103,12 +2103,12 @@ public static boolean isSymlink(final File file) {
21032103 * All files found are filtered by an IOFileFilter.
21042104 * </p>
21052105 *
2106- * @param directory the directory to search in
2106+ * @param directory The directory to search.
21072107 * @param fileFilter filter to apply when finding files.
21082108 * @param dirFilter optional filter to apply when finding subdirectories.
21092109 * If this parameter is {@code null}, subdirectories will not be included in the
21102110 * search. Use TrueFileFilter.INSTANCE to match all directories.
2111- * @return an iterator of {@link File} for the matching files
2111+ * @return an iterator of {@link File} for the matching files.
21122112 * @see org.apache.commons.io.filefilter.FileFilterUtils
21132113 * @see org.apache.commons.io.filefilter.NameFileFilter
21142114 * @since 1.2
@@ -2124,11 +2124,11 @@ public static Iterator<File> iterateFiles(final File directory, final IOFileFilt
21242124 * The resulting iterator MUST be consumed in its entirety in order to close its underlying stream.
21252125 * </p>
21262126 *
2127- * @param directory the directory to search in
2128- * @param extensions an array of extensions, for example, {"java","xml"}. If this
2127+ * @param directory The directory to search.
2128+ * @param extensions an array of extensions, for example, <code> {"java", "xml"}</code> . If this
21292129 * parameter is {@code null}, all files are returned.
2130- * @param recursive if true all subdirectories are searched as well
2131- * @return an iterator of {@link File} with the matching files
2130+ * @param recursive if true all subdirectories are searched as well.
2131+ * @return an iterator of {@link File} with the matching files.
21322132 * @since 1.2
21332133 */
21342134 public static Iterator <File > iterateFiles (final File directory , final String [] extensions , final boolean recursive ) {
@@ -2148,12 +2148,12 @@ public static Iterator<File> iterateFiles(final File directory, final String[] e
21482148 * The resulting iterator includes the subdirectories themselves.
21492149 * </p>
21502150 *
2151- * @param directory the directory to search in
2151+ * @param directory The directory to search.
21522152 * @param fileFilter filter to apply when finding files.
21532153 * @param dirFilter optional filter to apply when finding subdirectories.
21542154 * If this parameter is {@code null}, subdirectories will not be included in the
21552155 * search. Use TrueFileFilter.INSTANCE to match all directories.
2156- * @return an iterator of {@link File} for the matching files
2156+ * @return an iterator of {@link File} for the matching files.
21572157 * @see org.apache.commons.io.filefilter.FileFilterUtils
21582158 * @see org.apache.commons.io.filefilter.NameFileFilter
21592159 * @since 2.2
@@ -2234,8 +2234,8 @@ public static long lastModifiedUnchecked(final File file) {
22342234 /**
22352235 * Returns an Iterator for the lines in a {@link File} using the default encoding for the VM.
22362236 *
2237- * @param file the file to open for input, must not be {@code null}
2238- * @return an Iterator of the lines in the file, never {@code null}
2237+ * @param file the file to open for input, must not be {@code null}.
2238+ * @return an Iterator of the lines in the file, never {@code null}.
22392239 * @throws NullPointerException if file is {@code null}.
22402240 * @throws FileNotFoundException if the file does not exist, is a directory rather than a regular file, or for some
22412241 * other reason cannot be opened for reading.
@@ -2263,7 +2263,7 @@ public static LineIterator lineIterator(final File file) throws IOException {
22632263 * try {
22642264 * while (it.hasNext()) {
22652265 * String line = it.nextLine();
2266- * /// do something with line
2266+ * // do something with line
22672267 * }
22682268 * } finally {
22692269 * LineIterator.closeQuietly(iterator);
@@ -2274,8 +2274,8 @@ public static LineIterator lineIterator(final File file) throws IOException {
22742274 * underlying stream is closed.
22752275 * </p>
22762276 *
2277- * @param file the file to open for input, must not be {@code null}
2278- * @param charsetName the name of the requested charset, {@code null} means platform default
2277+ * @param file the file to open for input, must not be {@code null}.
2278+ * @param charsetName the name of the requested charset, {@code null} means platform default.
22792279 * @return a LineIterator for lines in the file, never {@code null}; MUST be closed by the caller.
22802280 * @throws NullPointerException if file is {@code null}.
22812281 * @throws FileNotFoundException if the file does not exist, is a directory rather than a regular file, or for some
@@ -2349,21 +2349,21 @@ private static File[] listFiles(final File directory, final FileFilter fileFilte
23492349 * </p>
23502350 * <p>
23512351 * An example: If you want to search through all directories called
2352- * "temp" you pass in {@code FileFilterUtils.NameFileFilter("temp")}
2352+ * "temp" you pass in {@code FileFilterUtils.NameFileFilter("temp")}.
23532353 * </p>
23542354 * <p>
23552355 * Another common usage of this method is find files in a directory
23562356 * tree but ignoring the directories generated CVS. You can simply pass
23572357 * in {@code FileFilterUtils.makeCVSAware(null)}.
23582358 * </p>
23592359 *
2360- * @param directory the directory to search in
2360+ * @param directory The directory to search.
23612361 * @param fileFilter filter to apply when finding files. Must not be {@code null},
23622362 * use {@link TrueFileFilter#INSTANCE} to match all files in selected directories.
23632363 * @param dirFilter optional filter to apply when finding subdirectories.
23642364 * If this parameter is {@code null}, subdirectories will not be included in the
23652365 * search. Use {@link TrueFileFilter#INSTANCE} to match all directories.
2366- * @return a collection of {@link File} with the matching files
2366+ * @return a collection of {@link File} with the matching files.
23672367 * @see org.apache.commons.io.filefilter.FileFilterUtils
23682368 * @see org.apache.commons.io.filefilter.NameFileFilter
23692369 */
@@ -2404,11 +2404,11 @@ private static void listFiles(final File directory, final List<File> files, fina
24042404 * Lists files within a given directory (and optionally its subdirectories)
24052405 * which match an array of extensions.
24062406 *
2407- * @param directory the directory to search in
2408- * @param extensions an array of extensions, for example, {"java","xml"}. If this
2407+ * @param directory The directory to search.
2408+ * @param extensions an array of extensions, for example, <code> {"java", "xml"}</code> . If this
24092409 * parameter is {@code null}, all files are returned.
24102410 * @param recursive if true all subdirectories are searched as well
2411- * @return a collection of {@link File} with the matching files
2411+ * @return a collection of {@link File} with the matching files.
24122412 */
24132413 public static Collection <File > listFiles (final File directory , final String [] extensions , final boolean recursive ) {
24142414 // IO-856: Don't use NIO to path walk, allocate as little as possible while traversing.
@@ -2426,12 +2426,12 @@ public static Collection<File> listFiles(final File directory, final String[] ex
24262426 * any subdirectories that match the directory filter.
24272427 * </p>
24282428 *
2429- * @param directory the directory to search in
2429+ * @param directory The directory to search.
24302430 * @param fileFilter filter to apply when finding files.
24312431 * @param dirFilter optional filter to apply when finding subdirectories.
24322432 * If this parameter is {@code null}, subdirectories will not be included in the
24332433 * search. Use TrueFileFilter.INSTANCE to match all directories.
2434- * @return a collection of {@link File} with the matching files
2434+ * @return a collection of {@link File} with the matching files.
24352435 * @see org.apache.commons.io.FileUtils#listFiles
24362436 * @see org.apache.commons.io.filefilter.FileFilterUtils
24372437 * @see org.apache.commons.io.filefilter.NameFileFilter
@@ -2543,7 +2543,7 @@ public static void moveDirectoryToDirectory(final File source, final File destDi
25432543 * @throws NullPointerException if any of the given {@link File}s are {@code null}.
25442544 * @throws FileExistsException if the destination file exists.
25452545 * @throws FileNotFoundException if the source file does not exist.
2546- * @throws IllegalArgumentException if {@code srcFile} is a directory
2546+ * @throws IllegalArgumentException if {@code srcFile} is a directory.
25472547 * @throws IOException if an error occurs.
25482548 * @since 1.4
25492549 */
@@ -2563,7 +2563,7 @@ public static void moveFile(final File srcFile, final File destFile) throws IOEx
25632563 * @throws NullPointerException if any of the given {@link File}s are {@code null}.
25642564 * @throws FileExistsException if the destination file exists.
25652565 * @throws FileNotFoundException if the source file does not exist.
2566- * @throws IllegalArgumentException if {@code srcFile} is a directory
2566+ * @throws IllegalArgumentException if {@code srcFile} is a directory.
25672567 * @throws IOException if an error occurs or setting the last-modified time didn't succeed.
25682568 * @since 2.9.0
25692569 */
@@ -2589,7 +2589,7 @@ public static void moveFile(final File srcFile, final File destFile, final CopyO
25892589 * </p>
25902590 *
25912591 * @param srcFile the file to be moved.
2592- * @param destDir the directory to move the file into
2592+ * @param destDir the directory to move the file into.
25932593 * @param createDestDir if {@code true} create the destination directory. If {@code false} throw an
25942594 * IOException if the destination directory does not already exist.
25952595 * @throws NullPointerException if any of the given {@link File}s are {@code null}.
@@ -2599,7 +2599,7 @@ public static void moveFile(final File srcFile, final File destFile, final CopyO
25992599 * @throws IOException if the directory was not created along with all its parent directories, if enabled.
26002600 * @throws IOException if an error occurs or setting the last-modified time didn't succeed.
26012601 * @throws SecurityException See {@link File#mkdirs()}.
2602- * @throws IllegalArgumentException if {@code destDir} exists but is not a directory
2602+ * @throws IllegalArgumentException if {@code destDir} exists but is not a directory.
26032603 * @since 1.4
26042604 */
26052605 public static void moveFileToDirectory (final File srcFile , final File destDir , final boolean createDestDir ) throws IOException {
@@ -2766,7 +2766,7 @@ public static byte[] readFileToByteArray(final File file) throws IOException {
27662766 * @throws IOException if an I/O error occurs, including when the file does not exist, is a directory rather than a regular file, or for some other
27672767 * reason why the file cannot be opened for reading.
27682768 * @since 1.3.1
2769- * @deprecated Use {@link #readFileToString(File, Charset)} instead (and specify the appropriate encoding)
2769+ * @deprecated Use {@link #readFileToString(File, Charset)} instead (and specify the appropriate encoding).
27702770 */
27712771 @ Deprecated
27722772 public static String readFileToString (final File file ) throws IOException {
@@ -2815,7 +2815,7 @@ public static String readFileToString(final File file, final String charsetName)
28152815 * @throws IOException if an I/O error occurs, including when the file does not exist, is a directory rather than a regular file, or for some other
28162816 * reason why the file cannot be opened for reading.
28172817 * @since 1.3
2818- * @deprecated Use {@link #readLines(File, Charset)} instead (and specify the appropriate encoding)
2818+ * @deprecated Use {@link #readLines(File, Charset)} instead (and specify the appropriate encoding).
28192819 */
28202820 @ Deprecated
28212821 public static List <String > readLines (final File file ) throws IOException {
@@ -2915,8 +2915,7 @@ private static void requireDirectoryIfExists(final File directory, final String
29152915 *
29162916 * @param sourceFile The source file to query.
29172917 * @param targetFile The target file or directory to set.
2918- * @return {@code true} if and only if the operation succeeded;
2919- * {@code false} otherwise
2918+ * @return {@code true} if and only if the operation succeeded; {@code false} otherwise.
29202919 * @throws NullPointerException if sourceFile is {@code null}.
29212920 * @throws NullPointerException if targetFile is {@code null}.
29222921 */
@@ -3038,9 +3037,9 @@ public static BigInteger sizeOfDirectoryAsBigInteger(final File directory) {
30383037 * closed stream causes a {@link IllegalStateException}.
30393038 * </p>
30403039 *
3041- * @param directory the directory to search in
3040+ * @param directory The directory to search.
30423041 * @param recursive if true all subdirectories are searched as well
3043- * @param extensions an array of extensions, for example, {"java","xml"}. If this parameter is {@code null}, all files are returned.
3042+ * @param extensions an array of extensions, for example, <code> {"java", "xml"}</code> . If this parameter is {@code null}, all files are returned.
30443043 * @return a Stream of {@link File} for matching files.
30453044 * @throws IOException if an I/O error is thrown when accessing the starting file.
30463045 * @since 2.9.0
0 commit comments