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/05/17 01:47:58 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/dtm CoroutineSAXParser_Xerces.java

jkesselm    01/05/16 16:47:58

  Modified:    java/src/org/apache/xml/dtm Tag: DTM_EXP
                        CoroutineSAXParser_Xerces.java
  Log:
  Scott wants to be able to pass in an existing instance of Xerces.
  Until we get that one method made public, the best we can do
  is pass in an existing instance if IncrementalXercesSaxParser.
  
  I'll pursue this.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +9 -10     xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineSAXParser_Xerces.java
  
  Index: CoroutineSAXParser_Xerces.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/Attic/CoroutineSAXParser_Xerces.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- CoroutineSAXParser_Xerces.java	2001/05/16 21:57:28	1.1.2.7
  +++ CoroutineSAXParser_Xerces.java	2001/05/16 23:47:56	1.1.2.8
  @@ -90,9 +90,6 @@
       // Data
       //
   
  -  //private CoroutineManager fCoroutineManager = null;
  -  //private int fAppCoroutineID = -1;
  -  //private int fParserCoroutineID = -1;
       private boolean fParseInProgress=false;
   
       //
  @@ -100,15 +97,17 @@
       //
   
       public CoroutineSAXParser_Xerces(CoroutineManager co, int appCoroutineID) {
  +      this(null,co,appCoroutineID);
  +    }
   
  -        incrementalParser=new IncrementalXercesSaxParser();
  +    public CoroutineSAXParser_Xerces(IncrementalXercesSaxParser ixsp, CoroutineManager co, int appCoroutineID) {
   
  -        incrementalParser.initHandlers(true, incrementalParser, incrementalParser);
  -	// fCoroutineManager = co;
  -	// fAppCoroutineID = appCoroutineID;
  -	// fParserCoroutineID = co.co_joinCoroutineSet(-1);
  -	// if (fParserCoroutineID == -1)
  -	//   throw new RuntimeException("co_joinCoroutineSet() failed");
  +      if(ixsp!=null)
  +        incrementalParser=ixsp;
  +      else
  +        incrementalParser=new IncrementalXercesSaxParser();
  +      
  +      incrementalParser.initHandlers(true, incrementalParser, incrementalParser);
       }
   
       //
  
  
  

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