[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: [EMAIL PROTECTED]                                       |
+ |  Reported By: [EMAIL PROTECTED]                               |
+ |      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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to