installtoolkit.wix
Class RtfGen

java.lang.Object
  extended by installtoolkit.wix.RtfGen

public class RtfGen
extends java.lang.Object

Helper class to generate a RTF File from lines of text by using the RTFEditorKit.

Author:
Christian Elberfeld
See Also:
RTFEditorKit

Constructor Summary
RtfGen()
           
 
Method Summary
static void generate(java.io.File file, java.util.List<java.lang.String> lines, java.lang.String fontFamily, int fontSize)
          Generate RTF File
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtfGen

public RtfGen()
Method Detail

generate

public static void generate(java.io.File file,
                            java.util.List<java.lang.String> lines,
                            java.lang.String fontFamily,
                            int fontSize)
                     throws java.io.IOException,
                            javax.swing.text.BadLocationException
Generate RTF File

Parameters:
file - Output file
lines - Text seperated as lines
fontFamily - Font family to use
fontSize - Font size to use
Throws:
java.io.IOException
javax.swing.text.BadLocationException


Copyright 2006-2006 null. All Rights Reserved.