public class XWPFTemplate extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
XWPFTemplate |
bind(String tagName,
RenderPolicy policy) |
XWPFTemplate |
bindRefPolicy(ReferenceRenderPolicy<?> refPolicy) |
void |
close() |
static XWPFTemplate |
compile(File file) |
static XWPFTemplate |
compile(File file,
Configure config) |
static XWPFTemplate |
compile(InputStream inputStream) |
static XWPFTemplate |
compile(InputStream inputStream,
Configure config) |
static XWPFTemplate |
compile(String filePath) |
static XWPFTemplate |
compile(String filePath,
Configure config) |
Configure |
getConfig() |
List<MetaTemplate> |
getElementTemplates() |
Resolver |
getResolver() |
NiceXWPFDocument |
getXWPFDocument() |
void |
reload(NiceXWPFDocument doc) |
XWPFTemplate |
render(Object model) |
XWPFTemplate |
render(Object model,
OutputStream out) |
void |
write(OutputStream out) |
void |
writeToFile(String path) |
public static XWPFTemplate compile(String filePath)
public static XWPFTemplate compile(File file)
public static XWPFTemplate compile(InputStream inputStream)
public static XWPFTemplate compile(String filePath, Configure config)
public static XWPFTemplate compile(File file, Configure config)
public static XWPFTemplate compile(InputStream inputStream, Configure config)
public XWPFTemplate render(Object model)
public XWPFTemplate render(Object model, OutputStream out) throws IOException
public XWPFTemplate bindRefPolicy(ReferenceRenderPolicy<?> refPolicy)
public XWPFTemplate bind(String tagName, RenderPolicy policy)
public void write(OutputStream out) throws IOException
public void writeToFile(String path) throws IOException
public void reload(NiceXWPFDocument doc)
public void close()
throws IOException
public List<MetaTemplate> getElementTemplates()
public NiceXWPFDocument getXWPFDocument()
public Configure getConfig()
public Resolver getResolver()
Copyright © 2020. All rights reserved.