摘要:
判断Android文件名是否安全技巧public static boolean IsFileNameOK(String filepath) { return Pattern.compile("[\\w%+,./=_-]+").matcher(filepath).matches(); } public static boolean IsFileNameOK(File file) { return Pattern.compile("[\\w%+,./=_-]+").matcher(file.getPath()).matches(); }一.获得控制台用户输入 阅读全文
posted @ 2011-07-30 00:03
OYK
阅读(496)
评论(0)
推荐(0)
浙公网安备 33010602011771号