< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/BaseMarkupSerializer.java

Print this page


   1 /*
   2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 // Sep 14, 2000:
  23 //  Fixed comments to preserve whitespaces and add a line break


 112  * spaces at beginning of line will be stripped.
 113  * <p>
 114  * When indenting, the serializer is capable of detecting seemingly
 115  * element content, and serializing these elements indented on separate
 116  * lines. An element is serialized indented when it is the first or
 117  * last child of an element, or immediate following or preceding
 118  * another element.
 119  *
 120  *
 121  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
 122  * @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
 123  * @author Elena Litani, IBM
 124  * @author Sunitha Reddy, Sun Microsystems
 125  * @see Serializer
 126  * @see org.w3c.dom.ls.LSSerializer
 127  *
 128  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
 129  * is replaced by that of Xalan. Main class
 130  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
 131  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.


 132  */
 133 @Deprecated
 134 public abstract class BaseMarkupSerializer
 135     implements ContentHandler, DocumentHandler, LexicalHandler,
 136                DTDHandler, DeclHandler, DOMSerializer, Serializer
 137 {
 138 
 139     // DOM L3 implementation
 140     protected short features = 0xFFFFFFFF;
 141     protected DOMErrorHandler fDOMErrorHandler;
 142     protected final DOMErrorImpl fDOMError = new DOMErrorImpl();
 143     protected LSSerializerFilter fDOMFilter;
 144 
 145     protected EncodingInfo _encodingInfo;
 146 
 147 
 148     /**
 149      * Holds array of all element states that have been entered.
 150      * The array is automatically resized. When leaving an element,
 151      * it's state is not removed but reused when later returning


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


< prev index next >