You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/08/16 10:29:13 UTC
[DO NOT REPLY: Bug 3143] New: -
[0.20.1] Driver's ContentHandler is broken
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3143
*** shadow/3143 Thu Aug 16 01:29:13 2001
--- shadow/3143.tmp.14067 Thu Aug 16 01:29:13 2001
***************
*** 0 ****
--- 1,28 ----
+ +============================================================================+
+ | [0.20.1] Driver's ContentHandler is broken |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3143 Product: Fop |
+ | Status: NEW Version: all |
+ | Resolution: Platform: PC |
+ | Severity: Critical OS/Version: Windows NT/2K |
+ | Priority: Other Component: general |
+ +----------------------------------------------------------------------------+
+ | Assigned To: fop-dev@xml.apache.org |
+ | Reported By: laurent.bihanic@atosorigin.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ In org.apache.fop.apps.Driver, getContentHandler() returns a useless
+ ContentHanlder, i.e. without any StreamRenderer configured.
+
+ Proposed fix: Move the following come from render(XMLReader, InputSource) to
+ getContentHandler():
+ StreamRenderer streamRenderer = new StreamRenderer(_stream, _renderer);
+ _treeBuilder.setStreamRenderer(streamRenderer);
+ And have render(XMLReader, InputSource) simply use:
+ parser.setContentHandler(getContentHandler());
+
+ Javadoc needs to be updated to warn that setOutputStream and setRenderer must be
+ called prior invoking getContentHandler().
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org