public abstract class XmlToXXX
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
|
XmlToXXX()
Construct an
XmlToXXX with the default page size. |
private |
XmlToXXX(Rectangle pageSize) |
|
XmlToXXX(java.lang.String pageSize)
Construct an
XmlToXXX with the specified page size. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addWriter(Document doc,
java.io.OutputStream out)
Add a
DocWriter for the specified Document and
OutputStream. |
private static Rectangle |
getPageSize(java.lang.String pageSize) |
void |
parse(java.io.InputStream in,
java.io.OutputStream out)
Parse the XML from the specified
InputStream, writing to the
specified OutputStream. |
protected Rectangle pageSize
public XmlToXXX()
XmlToXXX with the default page size.public XmlToXXX(java.lang.String pageSize)
XmlToXXX with the specified page size.pageSize - String page size name from
com.lowagie.text.PageSize.private XmlToXXX(Rectangle pageSize)
public final void parse(java.io.InputStream in,
java.io.OutputStream out)
throws DocumentException
InputStream, writing to the
specified OutputStream.in - the InputStream from which the XML is read.out - the OutputStream to which the result is written.DocumentException - if document errors occur.private static Rectangle getPageSize(java.lang.String pageSize)
protected abstract void addWriter(Document doc, java.io.OutputStream out) throws DocumentException
DocWriter for the specified Document and
OutputStream.doc - The document to which content will be addedout - The outputstream to which the document will be sentDocumentException - if document errors occur.