This method of the Path Class checks a file name, and if it is not valid, attempts to correct it.
public static String validateFilename(String origfilename, char replch) throws IOException;
Returns a valid file name or the original file name, if it is already valid.
origfilename | The file name to check and correct. |
replch | The character to replace invalid characters with. |
IOException if the file name cannot be corrected.