public static boolean isLegalFileNameChar(char c){
  return ILLEGAL_FILE_NAME_CHARS.indexOf(c) == -1;
}

public static boolean isLegalFileNameChar ( char c ) { return ILLEGAL_FILE_NAME_CHARS . indexOf ( c ) == - 1 ; }
checks whether the specified character is a legal ( dos / windows - ) file name character .
