1 /*
2 * Copyright (c) 2007, 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 * $Id: TransformerImpl.java,v 1.10 2007/06/13 01:57:09 joehw Exp $
22 */
23
24 package com.sun.org.apache.xalan.internal.xsltc.trax;
25
26 import com.sun.org.apache.xalan.internal.XalanConstants;
27 import com.sun.org.apache.xalan.internal.utils.FactoryImpl;
28 import com.sun.org.apache.xalan.internal.utils.XMLSecurityManager;
29 import com.sun.org.apache.xalan.internal.xsltc.DOM;
30 import com.sun.org.apache.xalan.internal.xsltc.DOMCache;
31 import com.sun.org.apache.xalan.internal.xsltc.StripFilter;
32 import com.sun.org.apache.xalan.internal.xsltc.Translet;
33 import com.sun.org.apache.xalan.internal.xsltc.TransletException;
34 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
35 import com.sun.org.apache.xalan.internal.xsltc.dom.DOMWSFilter;
36 import com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl;
37 import com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager;
38 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet;
39 import com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory;
40 import com.sun.org.apache.xml.internal.dtm.DTMWSFilter;
41 import com.sun.org.apache.xml.internal.serializer.OutputPropertiesFactory;
42 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
143 private URIResolver _uriResolver = null;
144
145 /**
146 * Output properties of this transformer instance.
147 */
148 private Properties _properties, _propertiesClone;
149
150 /**
151 * A reference to an output handler factory.
152 */
153 private TransletOutputHandlerFactory _tohFactory = null;
154
155 /**
156 * A reference to a internal DOM representation of the input.
157 */
158 private DOM _dom = null;
159
160 /**
161 * Number of indent spaces to add when indentation is on.
162 */
163 private int _indentNumber;
164
165 /**
166 * A reference to the transformer factory that this templates
167 * object belongs to.
168 */
169 private TransformerFactoryImpl _tfactory = null;
170
171 /**
172 * A reference to the output stream, if we create one in our code.
173 */
174 private OutputStream _ostream = null;
175
176 /**
177 * A reference to the XSLTCDTMManager which is used to build the DOM/DTM
178 * for this transformer.
179 */
180 private XSLTCDTMManager _dtmManager = null;
181
182 /**
183 * A reference to an object that creates and caches XMLReader objects.
1445 e.getMessageAndLocation()));
1446 }
1447 }
1448
1449 /**
1450 * This method resets the Transformer to its original configuration
1451 * Transformer code is reset to the same state it was when it was
1452 * created
1453 * @since 1.5
1454 */
1455 @Override
1456 public void reset() {
1457
1458 _method = null;
1459 _encoding = null;
1460 _sourceSystemId = null;
1461 _errorListener = this;
1462 _uriResolver = null;
1463 _dom = null;
1464 _parameters = null;
1465 _indentNumber = 0;
1466 setOutputProperties (null);
1467 _tohFactory = null;
1468 _ostream = null;
1469
1470 }
1471 }
|
1 /*
2 * Copyright (c) 2007, 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.trax;
22
23 import com.sun.org.apache.xalan.internal.XalanConstants;
24 import com.sun.org.apache.xalan.internal.utils.FactoryImpl;
25 import com.sun.org.apache.xalan.internal.utils.XMLSecurityManager;
26 import com.sun.org.apache.xalan.internal.xsltc.DOM;
27 import com.sun.org.apache.xalan.internal.xsltc.DOMCache;
28 import com.sun.org.apache.xalan.internal.xsltc.StripFilter;
29 import com.sun.org.apache.xalan.internal.xsltc.Translet;
30 import com.sun.org.apache.xalan.internal.xsltc.TransletException;
31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg;
32 import com.sun.org.apache.xalan.internal.xsltc.dom.DOMWSFilter;
33 import com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl;
34 import com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager;
35 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet;
36 import com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory;
37 import com.sun.org.apache.xml.internal.dtm.DTMWSFilter;
38 import com.sun.org.apache.xml.internal.serializer.OutputPropertiesFactory;
39 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
140 private URIResolver _uriResolver = null;
141
142 /**
143 * Output properties of this transformer instance.
144 */
145 private Properties _properties, _propertiesClone;
146
147 /**
148 * A reference to an output handler factory.
149 */
150 private TransletOutputHandlerFactory _tohFactory = null;
151
152 /**
153 * A reference to a internal DOM representation of the input.
154 */
155 private DOM _dom = null;
156
157 /**
158 * Number of indent spaces to add when indentation is on.
159 */
160 private int _indentNumber = -1;
161
162 /**
163 * A reference to the transformer factory that this templates
164 * object belongs to.
165 */
166 private TransformerFactoryImpl _tfactory = null;
167
168 /**
169 * A reference to the output stream, if we create one in our code.
170 */
171 private OutputStream _ostream = null;
172
173 /**
174 * A reference to the XSLTCDTMManager which is used to build the DOM/DTM
175 * for this transformer.
176 */
177 private XSLTCDTMManager _dtmManager = null;
178
179 /**
180 * A reference to an object that creates and caches XMLReader objects.
1442 e.getMessageAndLocation()));
1443 }
1444 }
1445
1446 /**
1447 * This method resets the Transformer to its original configuration
1448 * Transformer code is reset to the same state it was when it was
1449 * created
1450 * @since 1.5
1451 */
1452 @Override
1453 public void reset() {
1454
1455 _method = null;
1456 _encoding = null;
1457 _sourceSystemId = null;
1458 _errorListener = this;
1459 _uriResolver = null;
1460 _dom = null;
1461 _parameters = null;
1462 _indentNumber = -1;
1463 setOutputProperties (null);
1464 _tohFactory = null;
1465 _ostream = null;
1466
1467 }
1468 }
|