public class EasyWordTextWriter extends Object
| Constructor and Description |
|---|
EasyWordTextWriter(String regex)
创建EasyWordTextWriter实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
replaceTextPlaceholders(org.apache.poi.xwpf.usermodel.XWPFDocument document,
Map<String,Object> params)
替换文档中文本的占位符
|
void |
setRegex(String regex)
设置正则表达式
|
public EasyWordTextWriter(String regex)
regex - 占位符正则表达式 可选常用常量{link PlaceholderRegexConstant}public void replaceTextPlaceholders(org.apache.poi.xwpf.usermodel.XWPFDocument document,
Map<String,Object> params)
document - Word文档对象params - 替换参数public void setRegex(String regex)
regex - 占位符正则表达式 可选常用常量{link PlaceholderRegexConstant}Copyright © 2024. All rights reserved.