日期:2014-05-20 浏览次数:20707 次
private boolean isTooLarge() throws IOException{
long space;
space = new FileInputStream(file).available()/1024;//打开输入流而没关闭。
System.out.println("Log.isTooLarge()"+space);
return (space > MAX_FILE_SIZE);
}
private boolean isTooLarge() throws IOException
{
long space;
FileInputStream fis=new FileInputStream(file);
space = fis.available()/1024;
fis.close(); //关闭流!!!
System.out.println("Log.isTooLarge()"+space);
return (space > MAX_FILE_SIZE);
}