File file = new File(path);
if(!file.exists())
{
System.out.println("error: Path not Existed! Please Check it out!");
return;
}
String[] filelist = file.list();
for(int i = 0;i< filelist.length;i++)
{
File temp = new File(path + filelist[i]);
if((temp.isDirectory() && !temp.isHidden() && temp.exists()))
{
FindClassInLocalSystem(path + filelist[i],classname);
}
else
{
for (Enumeration e = jarfile.entries() ; e.hasMoreElements() ;)
{
String name =e.nextElement().toString();
System.out.println("No." + ++fclass.count);
System.out.println(path + filelist[i]);
System.out.println(name);
}
}
}
catch(Exception e){ }
}
自己去整理,调试。想输出啥就输出啥。
if(!file.exists())
{
System.out.println("error: Path not Existed! Please Check it out!");
return;
}
String[] filelist = file.list();
for(int i = 0;i< filelist.length;i++)
{
File temp = new File(path + filelist[i]);
if((temp.isDirectory() && !temp.isHidden() && temp.exists()))
{
FindClassInLocalSystem(path + filelist[i],classname);
}
else
{
for (Enumeration e = jarfile.entries() ; e.hasMoreElements() ;)
{
String name =e.nextElement().toString();
System.out.println("No." + ++fclass.count);
System.out.println(path + filelist[i]);
System.out.println(name);
}
}
}
catch(Exception e){ }
}
自己去整理,调试。想输出啥就输出啥。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货