cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Brant" <pmbr...@gmx.at>
Subject Change request to AbstractXMLProducer.setConsumer
Date Fri, 09 Jan 2004 15:24:24 GMT
Hi all --

The current code to AbstractXMLProducer.setConsumer is shown below.  Note
that the Javadoc does not agree with the actual implementation.  Could it be
changed to do so?  (For my specific case, I override setContentHandler to put a
ContentHandler in between myself and the final destination and with the code
the way it is now, I also have to override setConsumer to provide the
implementation described in the Javadoc).

Thanks,

Pete  

    /**
     * Set the <code>XMLConsumer</code> that will receive XML data.
     * <br>
     * This method will simply call <code>setContentHandler(consumer)</code>
     * and <code>setLexicalHandler(consumer)</code>.
     */
    public void setConsumer(XMLConsumer consumer) {
        this.xmlConsumer = consumer;
        this.contentHandler = consumer;
        this.lexicalHandler = consumer;
    }

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message