cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r452061 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java
Date Mon, 02 Oct 2006 14:58:12 GMT
Author: vgritsenko
Date: Mon Oct  2 07:58:11 2006
New Revision: 452061

URL: http://svn.apache.org/viewvc?view=rev&rev=452061
Log:
remove final

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java?view=diff&rev=452061&r1=452060&r2=452061
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLTeePipe.java
Mon Oct  2 07:58:11 2006
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -23,22 +23,13 @@
 import org.xml.sax.Locator;
 import org.xml.sax.SAXException;
 
-
 /**
  * This is a simple Tee Component.
  * The incoming events are forwarded to two other components.
  *
  * @version $Id$
  */
-public final class XMLTeePipe
-implements XMLPipe {
-
-    /**
-     * Set the <code>XMLConsumer</code> that will receive XML data.
-     */
-    public void setConsumer(XMLConsumer consumer) {
-        ((XMLProducer)this.firstConsumer).setConsumer(consumer);
-    }
+public class XMLTeePipe implements XMLPipe {
 
     private XMLConsumer firstConsumer;
     private XMLConsumer secondConsumer;
@@ -52,11 +43,25 @@
         this.secondConsumer = secondConsumer;
     }
 
+    /**
+     * Set the <code>XMLConsumer</code> that will receive XML data.
+     */
+    public void setConsumer(XMLConsumer consumer) {
+        ((XMLProducer) this.firstConsumer).setConsumer(consumer);
+    }
+
+    /**
+     * Reset consumers.
+     */
     public void recycle() {
         this.firstConsumer = null;
         this.secondConsumer = null;
     }
 
+    //
+    // XMLPipe interface
+    //
+
     public void startDocument() throws SAXException {
         this.firstConsumer.startDocument();
         this.secondConsumer.startDocument();
@@ -150,5 +155,4 @@
         this.firstConsumer.comment(ary, start, length);
         this.secondConsumer.comment(ary, start, length);
     }
-
 }



Mime
View raw message