|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rtf.RTFTemplate
public class RTFTemplate
| Constructor Summary | |
|---|---|
RTFTemplate()
|
|
| Method Summary | |
|---|---|
IContext |
getContext()
|
int |
getGroupByPerPageBreak()
|
IRTFDocumentParser |
getParser()
|
ITemplateEngine |
getTemplateEngine()
|
RTFDocument |
getTransformedDocument()
|
IRTFDocumentTransformer |
getTransformer()
|
TransformerConfig |
getTransformerConfig()
|
java.io.InputStream |
getXmlFields()
|
void |
initializeContext()
|
RTFDocument |
merge(java.io.File file)
Merge. |
RTFDocument |
merge(java.lang.String file)
Merge. |
RTFDocument |
merge(java.io.Writer writer)
Merge. |
void |
put(java.lang.String key,
java.lang.Object value)
Put a value for the given key. |
void |
setDefaultFormat(java.lang.Class clazz,
java.text.Format format)
Set the default format for a given class. |
void |
setGlobalContext(IContext globalContext)
Use a pre-populated Context. |
void |
setGroupByPerPageBreak(int groupByPerPageBreak)
|
void |
setParser(IRTFDocumentParser parser)
|
void |
setTemplate(java.io.File rtfSourceFile)
Set the template to use |
void |
setTemplate(java.io.InputStream template)
Set the template to use |
void |
setTemplate(java.io.Reader template)
Set the template to use |
void |
setTemplateEngine(ITemplateEngine templateEngine)
|
void |
setTransformedDocument(RTFDocument transformedDocument)
|
void |
setTransformer(IRTFDocumentTransformer transformer)
|
void |
setTransformerConfig(TransformerConfig transformerConfig)
|
void |
setXmlFields(java.io.InputStream xmlFields)
|
RTFDocument |
transform()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTFTemplate()
| Method Detail |
|---|
public void initializeContext()
public IContext getContext()
public void setGlobalContext(IContext globalContext)
innerContext - a pre-populated Context object
public void setTemplate(java.io.File rtfSourceFile)
throws java.io.FileNotFoundException
template -
java.io.FileNotFoundExceptionpublic void setTemplate(java.io.InputStream template)
template - public void setTemplate(java.io.Reader template)
template -
public void put(java.lang.String key,
java.lang.Object value)
key - value -
public RTFDocument merge(java.lang.String file)
throws java.lang.Exception
file - name of file to merge into
java.lang.Exception
public RTFDocument merge(java.io.File file)
throws java.lang.Exception
file - file to merge into
java.lang.Exception
public RTFDocument merge(java.io.Writer writer)
throws java.lang.Exception
writer - writer to merge into
java.lang.Exception
public void setDefaultFormat(java.lang.Class clazz,
java.text.Format format)
clazz - class to set format forformat - format to use for instances of the given class
public RTFDocument transform()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXExceptionpublic ITemplateEngine getTemplateEngine()
public void setTemplateEngine(ITemplateEngine templateEngine)
public IRTFDocumentTransformer getTransformer()
public void setTransformer(IRTFDocumentTransformer transformer)
public void setTransformerConfig(TransformerConfig transformerConfig)
public TransformerConfig getTransformerConfig()
public java.io.InputStream getXmlFields()
public void setXmlFields(java.io.InputStream xmlFields)
public void setTransformedDocument(RTFDocument transformedDocument)
public RTFDocument getTransformedDocument()
public int getGroupByPerPageBreak()
public void setGroupByPerPageBreak(int groupByPerPageBreak)
public IRTFDocumentParser getParser()
public void setParser(IRTFDocumentParser parser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||