magic-Dependency/zh_docs/us/codecraft/webmagic/downloader/Downloader-cmnt.xml

33 lines
1.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<javadoc>
<meta>
<date-generated>Sat Aug 17 14:14:45 CST 2013</date-generated>
</meta>
<comment>
<key><![CDATA[us.codecraft.webmagic.downloader.Downloader]]></key>
<data><![CDATA[ Downloader是webmagic下载页面的接口。webmagic默认使用了HttpComponent作为下载器一般情况你无需自己实现这个接口。<br>
@author code4crafter@gmail.com <br>
Date: 13-4-21
Time: 下午12:14
]]></data>
</comment>
<comment>
<key><![CDATA[us.codecraft.webmagic.downloader.Downloader.download(us.codecraft.webmagic.Request, us.codecraft.webmagic.Task)]]></key>
<data><![CDATA[ 下载页面并保存信息到Page对象中。
@param request
@param task
@return page
]]></data>
</comment>
<comment>
<key><![CDATA[us.codecraft.webmagic.downloader.Downloader.setThread(int)]]></key>
<data><![CDATA[ 设置线程数多线程程序一般需要Downloader支持<br>
如果不考虑多线程的可以不实现这个方法<br>
@param thread 线程数量
]]></data>
</comment>
</javadoc>