106 * For elements that are not specified as whitespace preserving,
107 * the serializer will potentially break long text lines at space
108 * boundaries, indent lines, and serialize elements on separate
109 * lines. Line terminators will be regarded as spaces, and
110 * spaces at beginning of line will be stripped.
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 1.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.
|
106 * For elements that are not specified as whitespace preserving,
107 * the serializer will potentially break long text lines at space
108 * boundaries, indent lines, and serialize elements on separate
109 * lines. Line terminators will be regarded as spaces, and
110 * spaces at beginning of line will be stripped.
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.
|