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