public class SimpleContentExtract extends Object implements ContentExtract
| Constructor and Description |
|---|
SimpleContentExtract(List<ContentExtractor> contentExtractors) |
| Modifier and Type | Method and Description |
|---|---|
void |
extract(ContentRule contentRule,
List<ExtractRule> rules,
Page page)
从网页内容里解析出所有符合要求的数据
|
public SimpleContentExtract(List<ContentExtractor> contentExtractors)
public void extract(ContentRule contentRule, List<ExtractRule> rules, Page page) throws com.yishuifengxiao.common.tool.exception.ServiceException
ContentExtractextract in interface ContentExtractcontentRule - 内容解析规则rules - 内容提取规则page - 网页对象com.yishuifengxiao.common.tool.exception.ServiceException - 解析时遇到的异常Copyright © 2020 Pivotal Software, Inc.. All rights reserved.