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