equal
deleted
inserted
replaced
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * See the License for the specific language governing permissions and |
17 * See the License for the specific language governing permissions and |
18 * limitations under the License. |
18 * limitations under the License. |
19 */ |
19 */ |
20 /* |
20 /* |
21 * $Id: SAX2DOM.java,v 1.7 2006/01/26 07:01:40 jeffsuttor Exp $ |
21 * $Id: SAX2DOM.java,v 1.8.2.1 2006/12/04 18:45:41 spericas Exp $ |
22 */ |
22 */ |
23 |
23 |
24 |
24 |
25 package com.sun.org.apache.xalan.internal.xsltc.trax; |
25 package com.sun.org.apache.xalan.internal.xsltc.trax; |
26 |
26 |
66 * thread safety. |
66 * thread safety. |
67 */ |
67 */ |
68 static final DocumentBuilderFactory _factory = |
68 static final DocumentBuilderFactory _factory = |
69 DocumentBuilderFactory.newInstance(); |
69 DocumentBuilderFactory.newInstance(); |
70 |
70 |
71 public SAX2DOM() throws ParserConfigurationException { |
71 public SAX2DOM() throws ParserConfigurationException { |
72 synchronized (SAX2DOM.class) { |
72 synchronized (SAX2DOM.class) { |
73 _document = _factory.newDocumentBuilder().newDocument(); |
73 _document = _factory.newDocumentBuilder().newDocument(); |
74 } |
74 } |
75 _root = _document; |
75 _root = _document; |
76 } |
76 } |