MyFileHandler.java 文件源码

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

项目:yajsw 作者:
void findNextGeneration()
{
    super.close();
    for (int i = count - 1; i > 0; i--)
    {
        if (files[i].exists())
        {
            files[i].delete();
        }
        files[i - 1].renameTo(files[i]);
    }
    try
    {
        output = new MeasureOutputStream(new BufferedOutputStream(
                new FileOutputStream(files[0])));
    }
    catch (FileNotFoundException e1)
    {
        this.getErrorManager().error("Error opening log file", e1,
                ErrorManager.OPEN_FAILURE);
    }
    setOutputStream(output);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号