cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/xml/dom DOMStreamer.java
Date Tue, 18 Mar 2003 15:44:47 GMT
bruno       2003/03/18 07:44:47

  Modified:    src/java/org/apache/cocoon/xml/dom DOMStreamer.java
  Log:
  re-added setContentHandler method, thanks to Unico Hommes (Unico at hippo dot nl) for reporting.
  
  Revision  Changes    Path
  1.9       +8 -10     cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
  
  Index: DOMStreamer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOMStreamer.java	17 Mar 2003 10:44:07 -0000	1.8
  +++ DOMStreamer.java	18 Mar 2003 15:44:47 -0000	1.9
  @@ -152,18 +152,16 @@
       }
   
       /**
  +     * Set the <code>ContentHandler</code> that will receive XML data.
  +     */
  +    public void setContentHandler(ContentHandler handler) {
  +        defaultDOMStreamer.setContentHandler(handler);
  +        namespaceNormalizingDOMStreamer.setContentHandler(handler);
  +    }
  +    /**
        * Set the <code>LexicalHandler</code> that will receive XML data.
  -     * <br>
  -     * Subclasses may retrieve this <code>LexicalHandler</code> instance
  -     * accessing the protected <code>super.lexicalHandler</code> field.
  -     *
  -     * @exception IllegalStateException If the <code>LexicalHandler</code>
or
  -     *                                  the <code>XMLConsumer</code> were
  -     *                                  already set.
        */
       public void setLexicalHandler(LexicalHandler handler) {
  -        // FIXME Shouldn't be used IHMO.
  -
           defaultDOMStreamer.setLexicalHandler(handler);
           namespaceNormalizingDOMStreamer.setLexicalHandler(handler);
       }
  
  
  

Mime
View raw message