@Override
    public void tagParseAndDownload(Page page, TagParseResult tagParseResult)
    {
        // 创建新文件
        File file = new File(page.getPageName());
        FileOutputStream fileOutputStream = null;
        
        System.out.println("开始解析并写入文件：" + page.getPageName());
        
        try
        {
            fileOutputStream = new FileOutputStream(file);
            
            if (null != tagParseResult)
            {
            	for (Tag tag : tagParseResult.getParseTags())
            	{
            		if (null != tagParseResult.getParseResult().get(tag))
            		{
            			fileOutputStream.write(("【" + tag.getDisplayName() + "】" + newLine + tagParseResult.getParseResult().get(tag).toString() + newLine).getBytes());
            		}
            	}
                fileOutputStream.flush();
            }

            System.out.println("成功解析并写入文件！");
            return;
        }
        catch (FileNotFoundException e)
        {
            System.out.println("解析并写入文件失败：" + e.toString());
            return;
        }
        catch (IOException e)
        {
            System.out.println("解析并写入文件失败：" + e.toString());
            return;
        }
        finally
        {
            if (null != fileOutputStream)
            {
                try
                {
                    fileOutputStream.close();
                }
                catch (IOException e)
                {
                    System.out.println(e.toString());
                }
            }
        }
    }