1 /* |
1 /* |
2 * reserved comment block |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT REMOVE OR ALTER! |
3 * @LastModified: Oct 2017 |
4 */ |
4 */ |
5 /* |
5 /* |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
8 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
20 */ |
20 */ |
21 |
21 |
22 |
22 |
23 package com.sun.org.apache.xalan.internal.xsltc.trax; |
23 package com.sun.org.apache.xalan.internal.xsltc.trax; |
24 |
24 |
25 import javax.xml.transform.Source; |
|
26 import javax.xml.transform.stream.StreamSource; |
|
27 |
|
28 import com.sun.org.apache.xalan.internal.xsltc.DOM; |
25 import com.sun.org.apache.xalan.internal.xsltc.DOM; |
29 import com.sun.org.apache.xalan.internal.xsltc.StripFilter; |
26 import com.sun.org.apache.xalan.internal.xsltc.StripFilter; |
30 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg; |
27 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg; |
31 import com.sun.org.apache.xalan.internal.xsltc.dom.DOMWSFilter; |
28 import com.sun.org.apache.xalan.internal.xsltc.dom.DOMWSFilter; |
32 import com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl; |
29 import com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl; |
33 import com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager; |
30 import com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager; |
34 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; |
31 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; |
35 |
32 import javax.xml.transform.Source; |
|
33 import javax.xml.transform.stream.StreamSource; |
36 import org.xml.sax.SAXException; |
34 import org.xml.sax.SAXException; |
37 |
35 |
38 /** |
36 /** |
39 * @author Morten Jorgensen |
37 * @author Morten Jorgensen |
40 */ |
38 */ |
41 public final class XSLTCSource implements Source { |
39 public final class XSLTCSource implements Source { |
42 |
40 |
43 private String _systemId = null; |
41 private String _systemId = null; |
44 private Source _source = null; |
42 private Source _source = null; |
45 private ThreadLocal _dom = new ThreadLocal(); |
43 private ThreadLocal<SAXImpl> _dom = new ThreadLocal<>(); |
46 |
44 |
47 /** |
45 /** |
48 * Create a new XSLTC-specific source from a system ID |
46 * Create a new XSLTC-specific source from a system ID |
49 */ |
47 */ |
50 public XSLTCSource(String systemId) |
48 public XSLTCSource(String systemId) |