= Pattern.compile(\".js\");
public boolean accept(File dir, String name) {
return pattern.matcher(new File(name).getName()).matches();
}
});
return jsFileList;
}
/**
* Check whether the character is an alpha char.
* <b><red>Actually, the words exist in a function name would not be limit among those we list below. [Page]
* This need to be fixed. </red></b>
*
* @param c The char to be checked.
* @return boolean True: is alpha char; False: is not alpha char.
*/
private static boolean isAlpha(int c) {
return ((c > ’a’ && c < ’z’) || (c > ’A’ && c < ’Z’) || (c > ’0’ && c < ’9’));
}
/**
* Fill specified number of ’ ’
*
* @param fw FileWriter
* @param charNum Specified number of ’ ’
* @throws IOException Exception when writing file
*/
private static void fillTableChar(FileWriter fw, int charNum) throws IOException {
for(int i = 0; i < charNum; i++) {
fw.write(’ ’);
}
}
}