Commit 76ef8916 authored by Fabien Triolet's avatar Fabien Triolet
Browse files

Maded it work inside a Loop

parent 8e479240
/** /**
* $Id: PDFSerializer.java,v 1.13 2002-11-07 14:31:11 triolet Exp $ * $Id: PDFSerializer.java,v 1.14 2002-11-08 07:42:21 triolet Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -88,6 +88,9 @@ public final class PDFSerializer extends TSerializer { ...@@ -88,6 +88,9 @@ public final class PDFSerializer extends TSerializer {
* The object which creates pdf,ps with fo * The object which creates pdf,ps with fo
*/ */
protected Driver driver = null; protected Driver driver = null;
protected ContentHandler handler = null;
/** /**
* Constructor for the PDFSerializer object * Constructor for the PDFSerializer object
...@@ -119,7 +122,7 @@ public final class PDFSerializer extends TSerializer { ...@@ -119,7 +122,7 @@ public final class PDFSerializer extends TSerializer {
*@return The contentHandler value *@return The contentHandler value
*/ */
public ContentHandler getContentHandler() { public ContentHandler getContentHandler() {
return (ContentHandler)driver.getContentHandler(); return handler;
} }
/** /**
...@@ -132,6 +135,7 @@ public final class PDFSerializer extends TSerializer { ...@@ -132,6 +135,7 @@ public final class PDFSerializer extends TSerializer {
public void setOutputStream() throws TMRuntimeException, TMException, SAXException { public void setOutputStream() throws TMRuntimeException, TMException, SAXException {
super.setOutputStream(); super.setOutputStream();
driver.setOutputStream(getOutputStream()); driver.setOutputStream(getOutputStream());
handler=(ContentHandler)driver.getContentHandler();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment