File file =
new
File(filePath);
if
(!file.exists())
return
null
;
/* 取得扩展名 */
String end=file.getName().substring(file.getName().lastIndexOf(
"."
) +
1
,file.getName().length()).toLowerCase();
File file =
new
File(filePath);
if
(!file.exists())
return
null
;
/* 取得扩展名 */
String end=file.getName().substring(file.getName().lastIndexOf(
"."
) +
1
,file.getName().length()).toLowerCase();