< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 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 problem with namespace handling. Contributed by


  75  * If an I/O exception occurs while serializing, the serializer
  76  * will not throw an exception directly, but only throw it
  77  * at the end of serializing (either DOM or SAX's {@link
  78  * org.xml.sax.DocumentHandler#endDocument}.
  79  * <p>
  80  * For elements that are not specified as whitespace preserving,
  81  * the serializer will potentially break long text lines at space
  82  * boundaries, indent lines, and serialize elements on separate
  83  * lines. Line terminators will be regarded as spaces, and
  84  * spaces at beginning of line will be stripped.
  85  *
  86  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  87  * @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
  88  * @author Elena Litani IBM
  89  * @see Serializer
  90  *
  91  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  92  * is replaced by that of Xalan. Main class
  93  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  94  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.


  95  */
  96 @Deprecated
  97 public class XMLSerializer
  98 extends BaseMarkupSerializer {
  99 
 100     //
 101     // constants
 102     //
 103 
 104     protected static final boolean DEBUG = false;
 105 
 106     //
 107     // data
 108     //
 109 
 110     //
 111     // DOM Level 3 implementation: variables intialized in DOMSerializerImpl
 112     //
 113 
 114     /** stores namespaces in scope */


   1 /*
   2  * Copyright (c) 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 problem with namespace handling. Contributed by


  74  * If an I/O exception occurs while serializing, the serializer
  75  * will not throw an exception directly, but only throw it
  76  * at the end of serializing (either DOM or SAX's {@link
  77  * org.xml.sax.DocumentHandler#endDocument}.
  78  * <p>
  79  * For elements that are not specified as whitespace preserving,
  80  * the serializer will potentially break long text lines at space
  81  * boundaries, indent lines, and serialize elements on separate
  82  * lines. Line terminators will be regarded as spaces, and
  83  * spaces at beginning of line will be stripped.
  84  *
  85  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  86  * @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
  87  * @author Elena Litani IBM
  88  * @see Serializer
  89  *
  90  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  91  * is replaced by that of Xalan. Main class
  92  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  93  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  94  *
  95  * @LastModified: Oct 2017
  96  */
  97 @Deprecated
  98 public class XMLSerializer
  99 extends BaseMarkupSerializer {
 100 
 101     //
 102     // constants
 103     //
 104 
 105     protected static final boolean DEBUG = false;
 106 
 107     //
 108     // data
 109     //
 110 
 111     //
 112     // DOM Level 3 implementation: variables intialized in DOMSerializerImpl
 113     //
 114 
 115     /** stores namespaces in scope */


< prev index next >