< prev index next >

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

Print this page


   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   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


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

  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 */
 116     protected NamespaceSupport fNSBinder;
 117 


   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


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


< prev index next >