You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/08/04 21:36:41 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/stree SourceTreeHandler.java
sboag 00/08/04 12:36:41
Modified: java/src/org/apache/xalan/stree SourceTreeHandler.java
Log:
Add the document to the cache... may be a temporary solution to the larger issue about which thread the parse should be on.
Revision Changes Path
1.4 +16 -1 xml-xalan/java/src/org/apache/xalan/stree/SourceTreeHandler.java
Index: SourceTreeHandler.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/SourceTreeHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SourceTreeHandler.java 2000/07/21 20:57:00 1.3
+++ SourceTreeHandler.java 2000/08/04 19:36:41 1.4
@@ -14,6 +14,7 @@
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
import trax.Transformer;
/**
@@ -65,6 +66,18 @@
{
m_root = root;
}
+
+ InputSource m_inputSource;
+
+ public void setInputSource(InputSource source)
+ {
+ m_inputSource = source;
+ }
+
+ public InputSource getInputSource()
+ {
+ return m_inputSource;
+ }
/**
* Implement the setDocumentLocator event.
@@ -73,7 +86,7 @@
{
}
- private boolean m_useMultiThreading = true;
+ public boolean m_useMultiThreading = true;
private boolean indexedLookup = false; // for now
@@ -98,6 +111,8 @@
if(m_useMultiThreading && (null != m_transformer))
{
+ if(null != m_inputSource)
+ m_transformer.getXPathContext().getSourceTreeManager().putDocumentInCache(m_root, m_inputSource);
Thread t = new Thread(m_transformer);
t.start();
//m_transformer.transformNode(m_root);