public abstract class XmlToXXX extends Object
Modifier | Constructor and Description |
---|---|
|
XmlToXXX()
Construct an
XmlToXXX with the default page size. |
private |
XmlToXXX(Rectangle pageSize) |
|
XmlToXXX(String pageSize)
Construct an
XmlToXXX with the specified page size. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addWriter(Document doc,
OutputStream out)
Add a
DocWriter for the specified Document and
OutputStream . |
private static Rectangle |
getPageSize(String pageSize) |
void |
parse(InputStream in,
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(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(InputStream in, 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.protected abstract void addWriter(Document doc, 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.