public class FileCache extends FilePersistentBase implements Downloader, Pipeline, PageProcessor
path, PATH_SEPERATOR| 构造器和说明 |
|---|
FileCache(String startUrl,
String urlPattern) |
FileCache(String startUrl,
String urlPattern,
String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
Page |
download(Request request,
Task task) |
Site |
getSite() |
void |
process(Page page) |
void |
process(ResultItems resultItems,
Task task) |
FileCache |
setDownloaderWhenFileMiss(Downloader downloaderWhenFileMiss) |
void |
setThread(int thread) |
checkAndMakeParentDirecotry, getFile, getPath, setPathpublic FileCache setDownloaderWhenFileMiss(Downloader downloaderWhenFileMiss)
public Page download(Request request, Task task)
download 在接口中 Downloaderpublic void setThread(int thread)
setThread 在接口中 Downloaderpublic void process(ResultItems resultItems, Task task)
public void process(Page page)
process 在接口中 PageProcessorpublic Site getSite()
getSite 在接口中 PageProcessorCopyright © 2016. All rights reserved.