[ https://issues.apache.org/jira/browse/IO-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb reopened IO-555: --------------------- As per mail to the dev list, array elements are mutable, so should never be exposed. > Add org.apache.commons.io.FilenameUtils.WINDOWS_ILLEGAL_FILE_NAME_CHARS > ----------------------------------------------------------------------- > > Key: IO-555 > URL: https://issues.apache.org/jira/browse/IO-555 > Project: Commons IO > Issue Type: Improvement > Reporter: Gary Gregory > Assignee: Gary Gregory > Fix For: 2.7 > > > Add {{org.apache.commons.io.FilenameUtils.WINDOWS_ILLEGAL_FILE_NAME_CHARS}}. > {code:java} > /** > * 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 > }; > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)