You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2001/04/14 04:37:11 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/dtm CoroutineSAXParser.java CoroutineManager.java CoroutineParser.java

jkesselm    01/04/13 19:37:11

  Modified:    java/src/org/apache/xml/dtm Tag: DTM_EXP
                        CoroutineManager.java CoroutineParser.java
  Added:       java/src/org/apache/xml/dtm Tag: DTM_EXP
                        CoroutineSAXParser.java
  Log:
  First draft of wrapping a CoroutineParser around a normal SAX stream.
  Good illustration of why coroutines are a useful concept -- they allow
  pausing the parse thread at an arbitrary location deep in the call stack,
  if that happens to be the best time at which to yield control.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +1 -1      xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineManager.java
  
  Index: CoroutineManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineManager.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- CoroutineManager.java	2001/04/13 21:43:24	1.1.2.4
  +++ CoroutineManager.java	2001/04/14 02:37:10	1.1.2.5
  @@ -255,7 +255,7 @@
      * a registered member of this group. %REVIEW% whether this is the
      * best choice.
      * */
  -  Object co_entry_pause(int thisCoroutine) throws java.lang.NoSuchMethodException
  +  public Object co_entry_pause(int thisCoroutine) throws java.lang.NoSuchMethodException
     {
       if(!m_activeIDs.get(thisCoroutine))
         throw new java.lang.NoSuchMethodException();
  
  
  
  1.1.2.3   +1 -1      xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineParser.java
  
  Index: CoroutineParser.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineParser.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- CoroutineParser.java	2001/04/13 21:43:24	1.1.2.2
  +++ CoroutineParser.java	2001/04/14 02:37:10	1.1.2.3
  @@ -116,4 +116,4 @@
        */
       public void run();
   
  -} // class CoroutineSAXParser_Xerces
  +} // class CoroutineParser
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +549 -0    xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineSAXParser.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org