62,634
社区成员




public void process(File file) {
if (file != null) {
if (file.exists()) {
if (!file.isDirectory()) {
if (file.canRead()) {
// do something;
}
}
}
}
}
//可以
if (file != null && file.isFile() && file.canRead()) {
// do something;
}else
{
throw .....
}