继承从org.archive.crawler.extractor.Extractor的子类,在extract方法中可以从参数CrawlURI中取出要解析的内容。
curi.getHttpRecorder().getReplayCharSequence.toString()
HttpRecorder hr = curi.getHttpRecorder();
if ( hr == null ) {
throw new IOException( "Why is recorder null here?" );
}
hr.setCharacterEncoding( "gb2312" );
cs = hr.getReplayCharSequence();
System.out.println( cs.toString() );