< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/AdaptiveResultTreeImpl.java

Print this page
rev 886 : 8150704: XALAN: ERROR: 'No more DTM IDs are available' when transforming with lots of temporary result trees
   1 /*
   2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *     http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 /*
  21  * $Id: AdaptiveResultTreeImpl.java,v 1.2.4.1 2005/09/06 05:52:18 pvedula Exp $
  22  */
  23 package com.sun.org.apache.xalan.internal.xsltc.dom;
  24 
  25 import com.sun.org.apache.xalan.internal.xsltc.DOM;
  26 import com.sun.org.apache.xalan.internal.xsltc.StripFilter;
  27 import com.sun.org.apache.xalan.internal.xsltc.TransletException;
  28 import com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary;
  29 import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
  30 import com.sun.org.apache.xml.internal.dtm.DTMAxisTraverser;
  31 import com.sun.org.apache.xml.internal.dtm.DTMWSFilter;
  32 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
  33 import com.sun.org.apache.xml.internal.utils.XMLString;
  34 import java.util.Map;
  35 import javax.xml.transform.SourceLocator;
  36 import org.w3c.dom.Node;
  37 import org.w3c.dom.NodeList;
  38 import org.xml.sax.Attributes;
  39 import org.xml.sax.SAXException;
  40 import org.xml.sax.helpers.AttributesImpl;
  41 
  42 /**


1321     public void documentRegistration()
1322     {
1323         if (_dom != null) {
1324             _dom.documentRegistration();
1325         }
1326         else {
1327             super.documentRegistration();
1328         }
1329     }
1330 
1331     public void documentRelease()
1332     {
1333         if (_dom != null) {
1334             _dom.documentRelease();
1335         }
1336         else {
1337             super.documentRelease();
1338         }
1339     }
1340 







1341 }
   1 /*
   2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *     http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 


  21 package com.sun.org.apache.xalan.internal.xsltc.dom;
  22 
  23 import com.sun.org.apache.xalan.internal.xsltc.DOM;
  24 import com.sun.org.apache.xalan.internal.xsltc.StripFilter;
  25 import com.sun.org.apache.xalan.internal.xsltc.TransletException;
  26 import com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary;
  27 import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
  28 import com.sun.org.apache.xml.internal.dtm.DTMAxisTraverser;
  29 import com.sun.org.apache.xml.internal.dtm.DTMWSFilter;
  30 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
  31 import com.sun.org.apache.xml.internal.utils.XMLString;
  32 import java.util.Map;
  33 import javax.xml.transform.SourceLocator;
  34 import org.w3c.dom.Node;
  35 import org.w3c.dom.NodeList;
  36 import org.xml.sax.Attributes;
  37 import org.xml.sax.SAXException;
  38 import org.xml.sax.helpers.AttributesImpl;
  39 
  40 /**


1319     public void documentRegistration()
1320     {
1321         if (_dom != null) {
1322             _dom.documentRegistration();
1323         }
1324         else {
1325             super.documentRegistration();
1326         }
1327     }
1328 
1329     public void documentRelease()
1330     {
1331         if (_dom != null) {
1332             _dom.documentRelease();
1333         }
1334         else {
1335             super.documentRelease();
1336         }
1337     }
1338 
1339     public void release() {
1340         if (_dom != null) {
1341             _dom.release();
1342             _dom = null;
1343         }
1344         super.release();
1345     }
1346 }
< prev index next >