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 // Sep 14, 2000:
22 // Fixed comments to preserve whitespaces and add a line break
111 * <p>
112 * When indenting, the serializer is capable of detecting seemingly
113 * element content, and serializing these elements indented on separate
114 * lines. An element is serialized indented when it is the first or
115 * last child of an element, or immediate following or preceding
116 * another element.
117 *
118 *
119 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
120 * @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
121 * @author Elena Litani, IBM
122 * @author Sunitha Reddy, Sun Microsystems
123 * @see Serializer
124 * @see org.w3c.dom.ls.LSSerializer
125 *
126 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
127 * is replaced by that of Xalan. Main class
128 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
129 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
130 */
131 public abstract class BaseMarkupSerializer
132 implements ContentHandler, DocumentHandler, LexicalHandler,
133 DTDHandler, DeclHandler, DOMSerializer, Serializer
134 {
135
136 // DOM L3 implementation
137 protected short features = 0xFFFFFFFF;
138 protected DOMErrorHandler fDOMErrorHandler;
139 protected final DOMErrorImpl fDOMError = new DOMErrorImpl();
140 protected LSSerializerFilter fDOMFilter;
141
142 protected EncodingInfo _encodingInfo;
143
144
145 /**
146 * Holds array of all element states that have been entered.
147 * The array is automatically resized. When leaving an element,
148 * it's state is not removed but reused when later returning
149 * to the same nesting level.
150 */
|
1 /*
2 * Copyright (c) 2015, 2017 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 // Sep 14, 2000:
22 // Fixed comments to preserve whitespaces and add a line break
111 * <p>
112 * When indenting, the serializer is capable of detecting seemingly
113 * element content, and serializing these elements indented on separate
114 * lines. An element is serialized indented when it is the first or
115 * last child of an element, or immediate following or preceding
116 * another element.
117 *
118 *
119 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
120 * @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
121 * @author Elena Litani, IBM
122 * @author Sunitha Reddy, Sun Microsystems
123 * @see Serializer
124 * @see org.w3c.dom.ls.LSSerializer
125 *
126 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
127 * is replaced by that of Xalan. Main class
128 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
129 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
130 */
131 @Deprecated
132 public abstract class BaseMarkupSerializer
133 implements ContentHandler, DocumentHandler, LexicalHandler,
134 DTDHandler, DeclHandler, DOMSerializer, Serializer
135 {
136
137 // DOM L3 implementation
138 protected short features = 0xFFFFFFFF;
139 protected DOMErrorHandler fDOMErrorHandler;
140 protected final DOMErrorImpl fDOMError = new DOMErrorImpl();
141 protected LSSerializerFilter fDOMFilter;
142
143 protected EncodingInfo _encodingInfo;
144
145
146 /**
147 * Holds array of all element states that have been entered.
148 * The array is automatically resized. When leaving an element,
149 * it's state is not removed but reused when later returning
150 * to the same nesting level.
151 */
|