1 /*
2 * Copyright (c) 2015, 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
23 package com.sun.org.apache.xml.internal.serialize;
25 import com.sun.org.apache.xerces.internal.utils.ObjectFactory;
26 import java.io.OutputStream;
27 import java.io.UnsupportedEncodingException;
28 import java.io.Writer;
29 import java.util.Collections;
30 import java.util.HashMap;
31 import java.util.Map;
32 import java.util.StringTokenizer;
33 import jdk.xml.internal.SecuritySupport;
34
35 /**
36 *
37 *
38 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
39 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
40 *
41 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
42 * is replaced by that of Xalan. Main class
43 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
44 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
45 */
46 @Deprecated
47 public abstract class SerializerFactory
48 {
49
50
51 public static final String FactoriesProperty = "com.sun.org.apache.xml.internal.serialize.factories";
52
53
54 private static final Map<String, SerializerFactory> _factories = Collections.synchronizedMap(new HashMap<>());
55
56
57 static
58 {
59 SerializerFactory factory;
60 String list;
61 StringTokenizer token;
62 String className;
63
64 // The default factories are always registered first,
|
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
22 package com.sun.org.apache.xml.internal.serialize;
24 import com.sun.org.apache.xerces.internal.utils.ObjectFactory;
25 import java.io.OutputStream;
26 import java.io.UnsupportedEncodingException;
27 import java.io.Writer;
28 import java.util.Collections;
29 import java.util.HashMap;
30 import java.util.Map;
31 import java.util.StringTokenizer;
32 import jdk.xml.internal.SecuritySupport;
33
34 /**
35 *
36 *
37 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
38 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
39 *
40 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
41 * is replaced by that of Xalan. Main class
42 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
43 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
44 *
45 * @LastModified: Oct 2017
46 */
47 @Deprecated
48 public abstract class SerializerFactory
49 {
50
51
52 public static final String FactoriesProperty = "com.sun.org.apache.xml.internal.serialize.factories";
53
54
55 private static final Map<String, SerializerFactory> _factories = Collections.synchronizedMap(new HashMap<>());
56
57
58 static
59 {
60 SerializerFactory factory;
61 String list;
62 StringTokenizer token;
63 String className;
64
65 // The default factories are always registered first,
|