|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.writersforge.catalan.GenericGenerator
Content generator for creating PDFs, HTML, and ASCII text files from
arbitrary XML data formats, using a layout-template XML file to filter and
position the data in the output medium. Uses the
BellowsLoader and GenericTemplate classes to
handle the loading and layout. The Renderer must be set before invoking
the rendering process.
| Constructor Summary | |
GenericGenerator()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Invokes the rendering process using the generic XML processing tools. |
void |
parseArgs(java.lang.String[] args)
Parses and processes the command-line arguments. |
void |
run()
Fires off the document generator, given the current input and output file settings and output format. |
void |
setFormat(java.lang.String format)
Sets the rendering format: "PDF", "TEXT", or "HTML". |
void |
setInputFiles(java.lang.String[] inputFiles)
Sets the array of input file paths. |
void |
setOutputFile(java.lang.String outputFile)
Sets the output file path. |
void |
setRenderer(Renderer renderer)
Assigns the Renderer to use for creating the final output. |
void |
setTemplateFile(java.lang.String templateFile)
Sets the file path for the template file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericGenerator()
| Method Detail |
public void setRenderer(Renderer renderer)
renderer - the Renderer to use for outputpublic void setFormat(java.lang.String format)
format - the rendering formatpublic void setTemplateFile(java.lang.String templateFile)
templateFile - a path to the template filepublic void setInputFiles(java.lang.String[] inputFiles)
inputFiles - an array of input file pathspublic void setOutputFile(java.lang.String outputFile)
outputFile - the output file pathpublic void parseArgs(java.lang.String[] args)
args - an array of command-line arguments, e.g., from main()
public void run()
throws java.io.IOException
java.io.IOException - if an error occurs while reading or writing
filespublic static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||