Add
org.apache.commons.io.FilenameUtils.WINDOWS_ILLEGAL_FILE_NAME_CHARS.
MODIFY
src/changes/changes.xml
src/changes/changes.xml
@@ -47,6 +47,9 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<!-- The release date is the date RC is cut -->
<release version="2.7" date="tba" description="tba">
+ <action issue="IO-553" dev="ggregory" type="update">
+ Add org.apache.commons.io.FilenameUtils.WINDOWS_ILLEGAL_FILE_NAME_CHARS.
+ </action>
</release>
<release version="2.6" date="2017-10-15" description="Java 7 required, Java 9 supported.">

MODIFY
src/main/java/org/apache/commons/io/FilenameUtils.java
src/main/java/org/apache/commons/io/FilenameUtils.java
*/
private static final char UNIX_SEPARATOR = '/';
+ /**
+ * The characters that are illegal in Windows file names.
+ *
+ * <ul>
+ * <li>< (less than</li>
+ * <li>> (greater than</li>
+ * <li>: (colon</li>
+ * <li>" (double quote</li>
+ * <li>/ (forward slash</li>
+ * <li>\ (backslash</li>
+ * <li>| (vertical bar or pipe</li>
+ * <li>? (question mark</li>
+ * <li>* (asterisk</li>
+ * <li>ASCII NUL (0)</li>
+ * <li>Integer characters 1 through 31</li>
+ * </ul>
+ *
+ * @since 2.7
+ * @see <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx">Naming Files,
+ * Paths, and Namespaces</a>
+ */
+ public static final char[] WINDOWS_ILLEGAL_FILE_NAME_CHARS = {
+ // @formatter:off
+ // ASCII NULL
+ 0,
+ // 1-31 may be allowed in file streams
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
+ 29, 30, 31,
+ '<', '>', ':', '"', '/', '\\', '|', '?', '*'
+ // @formatter:on
+ };
+
/**
* The Windows separator character.
*/

[IO-553] Add
org.apache.commons.io.FilenameUtils.WINDOWS_ILLEGAL_FILE_NAME_CHARS.