public class PbPOIWordTemplate extends Object
| 构造器和说明 |
|---|
PbPOIWordTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
PbPOIWordTemplate |
setLoopEnd(String loopEnd)
Set the end identifier of the replacement table row loop data
|
PbPOIWordTemplate |
setLoopStart(String loopStart)
Set the start identifier of the replacement table row loop data
|
PbPOIWordTemplate |
setVariableEnd(String variableEnd)
Set the end identifier of the replacement variable
|
PbPOIWordTemplate |
setVariableStart(String variableStart)
Set the start identifier of the replacement variable
|
void |
writeTo(File templateFile,
File toFile,
Object data)
After reading the specified WORD template and replacing the contents of the template, a new WORD file is generated
|
void |
writeTo(File templateFile,
FileSuffix fileSuffix,
OutputStream outputStream,
Object data)
After reading the specified WORD template and replacing the contents of the template, a new WORD file is generated
|
public PbPOIWordTemplate setVariableStart(String variableStart)
variableStart - The start identifier of the replacement variablepublic PbPOIWordTemplate setVariableEnd(String variableEnd)
variableEnd - The start identifier of the replacement variablepublic PbPOIWordTemplate setLoopStart(String loopStart)
loopStart - The start identifier of the replacement table row loop datapublic PbPOIWordTemplate setLoopEnd(String loopEnd)
loopEnd - The start identifier of the replacement table row loop datapublic void writeTo(File templateFile, File toFile, Object data) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
templateFile - file must existtoFile - new file for generateddata - Replace data objects with template variables declared by annotationsIOException - io exceptionNoSuchMethodException - No such methodInvocationTargetException - Invocation targetIllegalAccessException - Illegal accesspublic void writeTo(File templateFile, FileSuffix fileSuffix, OutputStream outputStream, Object data) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
templateFile - file must existfileSuffix - File's suffix,including doc and docxoutputStream - Output streamdata - Replace data objects with template variables declared by annotationsIOException - io exceptionNoSuchMethodException - No such methodInvocationTargetException - Invocation targetIllegalAccessException - Illegal accessCopyright © 2019. All rights reserved.