cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/xml/util XPathAPI.java DOMStreamer.java
Date Mon, 17 Apr 2000 00:13:51 GMT
balld       00/04/16 17:13:50

  Modified:    src/org/apache/cocoon/xml/util Tag: xml-cocoon2
                        DOMStreamer.java
  Added:       src/org/apache/cocoon/xml/util Tag: xml-cocoon2
                        XPathAPI.java
  Log:
  I stole XPathAPI _straight_ from Xalan, just dumped a package directive in the top. DOMStreamer...
DOMStreamer... I think I changed the stream method to not require a Document but just simply
a Node. Hope so.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +8 -4      xml-cocoon/src/org/apache/cocoon/xml/util/Attic/DOMStreamer.java
  
  Index: DOMStreamer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/xml/util/Attic/DOMStreamer.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- DOMStreamer.java	2000/02/27 17:50:08	1.1.2.3
  +++ DOMStreamer.java	2000/04/17 00:13:49	1.1.2.4
  @@ -33,7 +33,7 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/27 17:50:08 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/04/17 00:13:49 $
    */
   public class DOMStreamer extends AbstractXMLProducer {
   
  @@ -77,9 +77,13 @@
       /**
        * Start the production of SAX events.
        */
  -    public void stream(Document document)
  +    public void stream(Object object)
       throws SAXException {
  -        processNode(document);
  +		try {
  +        	processNode((Node)object);
  +		} catch (ClassCastException e) {
  +			throw new SAXException(e);
  +		}
       }
       
       /** Process a generic node */
  @@ -256,4 +260,4 @@
               }
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +221 -0    xml-cocoon/src/org/apache/cocoon/xml/util/Attic/XPathAPI.java
  
  
  
  

Mime
View raw message