ChartDeleter.java 文件源码

java
阅读 45 收藏 0 点赞 0 评论 0

项目:jfreechart 作者:
/**
 * When this object is unbound from the session (including upon session
 * expiry) the files that have been added to the ArrayList are iterated
 * and deleted.
 *
 * @param event  the session unbind event.
 */
@Override
public void valueUnbound(HttpSessionBindingEvent event) {
    Iterator iter = this.chartNames.listIterator();
    while (iter.hasNext()) {
        String filename = (String) iter.next();
        File file = new File(
            System.getProperty("java.io.tmpdir"), filename
        );
        if (file.exists()) {
            file.delete();
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号