public class XWPFTemplate extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
static XWPFTemplate |
compile(File file) |
static XWPFTemplate |
compile(File file,
Configure config) |
static XWPFTemplate |
compile(String filePath) |
static XWPFTemplate |
compile(String filePath,
Configure config) |
static XWPFTemplate |
create(File file)
已过时。
|
static XWPFTemplate |
create(String filePath)
已过时。
|
Configure |
getConfig() |
List<ElementTemplate> |
getElementTemplates() |
RenderPolicy |
getPolicy(Class<? extends ElementTemplate> clazz)
已过时。
|
RenderPolicy |
getPolicy(String templateName) |
NiceXWPFDocument |
getXWPFDocument() |
void |
registerPolicy(Class<?> templateClass,
RenderPolicy policy)
已过时。
|
void |
registerPolicy(String templateName,
RenderPolicy policy) |
XWPFTemplate |
render(Map<String,Object> datas) |
XWPFTemplate |
render(Object datasource) |
void |
write(OutputStream out) |
@Deprecated public static XWPFTemplate create(String filePath)
@Deprecated public static XWPFTemplate create(File file)
public static XWPFTemplate compile(String filePath)
public static XWPFTemplate compile(File file)
public static XWPFTemplate compile(String filePath, Configure config)
public static XWPFTemplate compile(File file, Configure config)
public XWPFTemplate render(Map<String,Object> datas)
public XWPFTemplate render(Object datasource)
@Deprecated public void registerPolicy(Class<?> templateClass, RenderPolicy policy)
public void registerPolicy(String templateName, RenderPolicy policy)
@Deprecated public RenderPolicy getPolicy(Class<? extends ElementTemplate> clazz)
public RenderPolicy getPolicy(String templateName)
public void write(OutputStream out) throws IOException
public void close()
throws IOException
public List<ElementTemplate> getElementTemplates()
public NiceXWPFDocument getXWPFDocument()
public Configure getConfig()
Copyright © 2017. All rights reserved.