curcuru     2003/02/13 08:49:44

  Modified:    java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/parser Tag:
                        xslt20 SimpleNode.java
  Log:
  Change dump(...) to include ostream parameter
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +8 -5      
xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/parser/Attic/SimpleNode.java
  
  Index: SimpleNode.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/parser/Attic/SimpleNode.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- SimpleNode.java   12 Feb 2003 16:14:55 -0000      1.1.2.4
  +++ SimpleNode.java   13 Feb 2003 16:49:44 -0000      1.1.2.5
  @@ -550,11 +550,16 @@
           return prefix + toString();
       }
   
  +    public void dump(String prefix)
  +    {
  +        dump(prefix, System.out);
  +    }
  +
       /* Override this method if you want to customize how the node dumps
          out its children. */
  -    public void dump(String prefix)
  +    public void dump(String prefix, java.io.PrintStream out)
       {
  -        System.out.println(toString(prefix));
  +        out.println(toString(prefix));
   
           if (children != null)
           {
  @@ -564,12 +569,10 @@
   
                   if (n != null)
                   {
  -                    n.dump(prefix + " ");
  +                    n.dump(prefix + " ", out);
                   }
               }
           }
       }
  -
  -   
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to