org.writersforge.catalan
Class DTDGenerator

java.lang.Object
  |
  +--org.writersforge.catalan.DTDGenerator

public class DTDGenerator
extends java.lang.Object

Command-line utility to generate an XML DTD from DataModel XML.

Author:
jsheets

Constructor Summary
DTDGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void renderDTD(java.io.Reader reader, java.io.Writer writer)
          Converts the FormXML content from the reader into PDF format and sends it to the pdfStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDGenerator

public DTDGenerator()
Method Detail

renderDTD

public void renderDTD(java.io.Reader reader,
                      java.io.Writer writer)
Converts the FormXML content from the reader into PDF format and sends it to the pdfStream. An OutputStream must be used for the output because that's the only argument GNU jpdf will accept (and since PDFs can contain binary content, that's probably for the best).

Parameters:
reader - the incoming FormXML content
writer - the outgoing PDF stream

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments