|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentTemplate
| Nested Class Summary | |
|---|---|
static interface |
DocumentTemplate.ContentWrapper
|
| Method Summary | |
|---|---|
void |
createDocument(java.lang.Object model,
java.io.OutputStream output)
Merge the data model into this template and create the output document. |
void |
setContentWrapper(DocumentTemplate.ContentWrapper contentWrapper)
Hook to set custom FreeMarker directives on each XML entry. |
void |
setXmlEntries(java.lang.String[] xmlEntries)
Set which XML entries in the ODT template can contain templating instructions. |
| Method Detail |
|---|
void setXmlEntries(java.lang.String[] xmlEntries)
By default they are content.xml and styles.xml.
To add all possible XML entries use
template.setXmlEntries(new String[] {
"content.xml",
"meta.xml",
"settings.xml",
"styles.xml"
});
xmlEntries - void setContentWrapper(DocumentTemplate.ContentWrapper contentWrapper)
The default implementation escapes XML entities and converts newline characters into line-break tags.
contentWrapper -
void createDocument(java.lang.Object model,
java.io.OutputStream output)
throws java.io.IOException,
DocumentTemplateException
model - output -
java.io.IOException
DocumentTemplateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||