下载回来怎么也得读取内容:
package com.core.crawl;
import java.io.IOException;
import com.util.file.Files;
public class Crawl {
/**
* @param args
* @throws IOException
* @throws InterruptedException
*/
public static void main(String[] args) throws IOException, InterruptedException {
long begin = System.currentTimeMillis();
//WebSpider spider2 = new WebSpider();
WebSpider spider1 = new WebSpider();
spider1.setWebAddress("http://www.w3c.org/robots.txt");
spider1.setDestFile(Files.getSysPath() + "/"+"robots.");
//spider2.setWebAddress("http://blog.csdn.net/longronglin");
//spider2.setDestFile(Files.getSysPath() + "/"