Package com.lowagie.text.xml
Class XmlToXXX
- java.lang.Object
-
- com.lowagie.text.xml.XmlToXXX
-
public abstract class XmlToXXX extends java.lang.ObjectGenerates an specific file from an iText XML file.- Version:
- 1.0
- Author:
- Matt Benson
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddWriter(Document doc, java.io.OutputStream out)Add aDocWriterfor the specifiedDocumentandOutputStream.private static RectanglegetPageSize(java.lang.String pageSize)voidparse(java.io.InputStream in, java.io.OutputStream out)Parse the XML from the specifiedInputStream, writing to the specifiedOutputStream.
-
-
-
Field Detail
-
pageSize
protected Rectangle pageSize
-
-
Constructor Detail
-
XmlToXXX
public XmlToXXX()
Construct anXmlToXXXwith the default page size.
-
XmlToXXX
public XmlToXXX(java.lang.String pageSize)
Construct anXmlToXXXwith the specified page size.- Parameters:
pageSize-Stringpage size name fromcom.lowagie.text.PageSize.
-
XmlToXXX
private XmlToXXX(Rectangle pageSize)
-
-
Method Detail
-
parse
public final void parse(java.io.InputStream in, java.io.OutputStream out) throws DocumentExceptionParse the XML from the specifiedInputStream, writing to the specifiedOutputStream.- Parameters:
in- theInputStreamfrom which the XML is read.out- theOutputStreamto which the result is written.- Throws:
DocumentException- if document errors occur.
-
getPageSize
private static Rectangle getPageSize(java.lang.String pageSize)
-
addWriter
protected abstract void addWriter(Document doc, java.io.OutputStream out) throws DocumentException
Add aDocWriterfor the specifiedDocumentandOutputStream.- Parameters:
doc- The document to which content will be addedout- The outputstream to which the document will be sent- Throws:
DocumentException- if document errors occur.
-
-