public class XWPFTemplate extends Object implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
TEMPLATE_TAG_NAME |
public static final String TEMPLATE_TAG_NAME
public static XWPFTemplate compile(String absolutePath)
public static XWPFTemplate compile(File templateFile)
public static XWPFTemplate compile(InputStream inputStream)
public static XWPFTemplate compile(org.apache.poi.xwpf.usermodel.XWPFDocument document)
public static XWPFTemplate compile(String absolutePath, Configure config)
public static XWPFTemplate compile(File templateFile, Configure config)
public static XWPFTemplate compile(org.apache.poi.xwpf.usermodel.XWPFDocument document, Configure config)
public static XWPFTemplate compile(InputStream inputStream, Configure config)
public static XWPFTemplate create(DocumentRenderData data)
public static XWPFTemplate create(DocumentRenderData data, Style templateTagStyle)
public XWPFTemplate render(Object model)
public XWPFTemplate render(Object model, OutputStream out) throws IOException
public void write(OutputStream out) throws IOException
public void writeAndClose(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 © 2021. All rights reserved.