Class RtfTemplate
- java.lang.Object
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTemplate
-
public final class RtfTemplate extends java.lang.ObjectSingelton of the RTF style template This class belongs to the jfor:style-template tag processing.
-
-
Field Summary
Fields Modifier and Type Field Description private static RtfTemplateinstanceSingelton instanceprivate java.lang.StringtemplateFilePath
-
Constructor Summary
Constructors Modifier Constructor Description privateRtfTemplate()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RtfTemplategetInstance()Singelton.voidsetTemplateFilePath(java.lang.String templateFilePath)Set the template file and adjust tha path separatorvoidwriteTemplate(RtfHeader header)Write the rtf template
-
-
-
Field Detail
-
instance
private static RtfTemplate instance
Singelton instance
-
templateFilePath
private java.lang.String templateFilePath
-
-
Method Detail
-
getInstance
public static RtfTemplate getInstance()
Singelton.- Returns:
- The instance of RtfTemplate
-
setTemplateFilePath
public void setTemplateFilePath(java.lang.String templateFilePath) throws java.io.IOExceptionSet the template file and adjust tha path separator- Parameters:
templateFilePath- The full path of the template- Throws:
java.io.IOException- for I/O problems
-
writeTemplate
public void writeTemplate(RtfHeader header) throws java.io.IOException
Write the rtf template- Parameters:
header- Rtf header is the parent- Throws:
java.io.IOException- On write error
-
-