com.lowagie.text.xml
Class XmlToRtf

java.lang.Object
  extended by com.lowagie.text.xml.XmlToXXX
      extended by com.lowagie.text.xml.XmlToRtf

public class XmlToRtf
extends XmlToXXX

RTF-specific subclass of XmlToXXX.

Version:
1.0
Author:
Matt Benson

Field Summary
 
Fields inherited from class com.lowagie.text.xml.XmlToXXX
pageSize
 
Constructor Summary
XmlToRtf()
          Construct an XmlToRtf with the default page size.
XmlToRtf(java.lang.String pageSize)
          Construct an XmlToRtf with the specified page size.
 
Method Summary
protected  void addWriter(Document doc, java.io.OutputStream out)
          Add a DocWriter for the specified Document and OutputStream.
static void main(java.lang.String[] args)
          Main method of the XmlToRtf class.
 
Methods inherited from class com.lowagie.text.xml.XmlToXXX
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlToRtf

public XmlToRtf()
Construct an XmlToRtf with the default page size.


XmlToRtf

public XmlToRtf(java.lang.String pageSize)
Construct an XmlToRtf with the specified page size.

Parameters:
pageSize - String page size name from com.lowagie.text.PageSize.
Method Detail

addWriter

protected final void addWriter(Document doc,
                               java.io.OutputStream out)
                        throws DocumentException
Add a DocWriter for the specified Document and OutputStream.

Specified by:
addWriter in class XmlToXXX
Parameters:
doc - The document to which content will be added
out - The outputstream to which RTF will be sent
Throws:
DocumentException - if document errors occur.

main

public static void main(java.lang.String[] args)
Main method of the XmlToRtf class.

Parameters:
args - String[] of command-line arguments.

Hosted by Hostbasket