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
* @return the file allocation block size in bytes.
483
477
* @since 2.12.0
484
478
*/
@@ -512,21 +506,26 @@ public int[] getIllegalFileNameCodePoints() {
512
506
/**
513
507
* Gets the maximum length for file names (excluding any folder path).
514
508
*
515
-
* <p>This limit applies only to the file name itself, excluding any parent
516
-
* directories.</p>
509
+
* <p>
510
+
* This limit applies only to the file name itself, excluding any parent directories.
511
+
* </p>
517
512
*
518
-
* <p>The value is expressed in Java {@code char} units (UTF-16 code units).</p>
513
+
* <p>
514
+
* The value is expressed in Java {@code char} units (UTF-16 code units).
515
+
* </p>
519
516
*
520
-
* <p><strong>Note:</strong> Because many file systems enforce limits in
521
-
* <em>bytes</em> using a specific encoding rather than in UTF-16 code
522
-
* units, a name that fits this limit may still be rejected by the
523
-
* underlying file system.</p>
517
+
* <p>
518
+
* <strong>Note:</strong> Because many file systems enforce limits in <em>bytes</em> using a specific encoding rather than in UTF-16 code units, a name that
519
+
* fits this limit may still be rejected by the underlying file system.
520
+
* </p>
524
521
*
525
-
* <p>Use {@link #isLegalFileName} to check whether a given name is valid
526
-
* for the current file system and charset.</p>
522
+
* <p>
523
+
* Use {@link #isLegalFileName} to check whether a given name is valid for the current file system and charset.
524
+
* </p>
527
525
*
528
-
* <p>However, any file name longer than this limit is guaranteed to be
529
-
* invalid on the current file system.</p>
526
+
* <p>
527
+
* However, any file name longer than this limit is guaranteed to be invalid on the current file system.
528
+
* </p>
530
529
*
531
530
* @return the maximum file name length in characters.
532
531
*/
@@ -537,20 +536,23 @@ public int getMaxFileNameLength() {
537
536
/**
538
537
* Gets the maximum length for file paths (may include folders).
539
538
*
540
-
* <p>This value is inclusive of all path components and separators.
541
-
* For a limit of each path component see {@link #getMaxFileNameLength()}.</p>
539
+
* <p>
540
+
* This value is inclusive of all path components and separators. For a limit of each path component see {@link #getMaxFileNameLength()}.
541
+
* </p>
542
542
*
543
-
* <p>The value is expressed in Java {@code char} units (UTF-16 code units)
544
-
* and represents the longest path that can be safely passed to Java
545
-
* {@link java.io.File} and {@link java.nio.file.Path} APIs.</p>
543
+
* <p>
544
+
* The value is expressed in Java {@code char} units (UTF-16 code units) and represents the longest path that can be safely passed to Java
545
+
* {@link java.io.File} and {@link java.nio.file.Path} APIs.
546
+
* </p>
546
547
*
547
-
* <p><strong>Note:</strong> many operating systems and file systems enforce
548
-
* path length limits in <em>bytes</em> using a specific encoding, rather than
549
-
* in UTF-16 code units. As a result, a path that fits within this limit may
550
-
* still be rejected by the underlying platform.</p>
548
+
* <p>
549
+
* <strong>Note:</strong> many operating systems and file systems enforce path length limits in <em>bytes</em> using a specific encoding, rather than in
550
+
* UTF-16 code units. As a result, a path that fits within this limit may still be rejected by the underlying platform.
551
+
* </p>
551
552
*
552
-
* <p>Conversely, any path longer than this limit is guaranteed to fail with
553
-
* at least some operating system API calls.</p>
553
+
* <p>
554
+
* Conversely, any path longer than this limit is guaranteed to fail with at least some operating system API calls.
555
+
* </p>
554
556
*
555
557
* @return the maximum file path length in characters.
556
558
*/
@@ -599,7 +601,7 @@ public boolean isCaseSensitive() {
599
601
* Tests if the given character is illegal in a file name, {@code false} otherwise.
600
602
*
601
603
* @param c
602
-
* the character to test
604
+
* the character to test.
603
605
* @return {@code true} if the given character is illegal in a file name, {@code false} otherwise.
604
606
*/
605
607
privatebooleanisIllegalFileNameChar(finalintc) {
@@ -617,8 +619,8 @@ private boolean isIllegalFileNameChar(final int c) {
617
619
* </ul>
618
620
*
619
621
* @param candidate
620
-
* A candidate file name (without a path) like {@code "filename.ext"} or {@code "filename"}
621
-
* @return {@code true} if the candidate name is legal
622
+
* A candidate file name (without a path) like {@code "filename.ext"} or {@code "filename"}.
623
+
* @return {@code true} if the candidate name is legal.
0 commit comments