19 * limitations under the License.
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.OutputStream;
27 import java.io.Writer;
28 import java.io.UnsupportedEncodingException;
29 import com.sun.org.apache.xerces.internal.dom.DOMMessageFormatter;
30
31 /**
32 * Default serializer factory can construct serializers for the three
33 * markup serializers (XML, HTML, XHTML ).
34 *
35 *
36 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
37 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
38 *
39 * @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
40 * is replaced by that of Xalan. Main class
41 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
42 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
43 */
44 final class SerializerFactoryImpl
45 extends SerializerFactory
46 {
47
48
49 private String _method;
50
51
52 SerializerFactoryImpl( String method )
53 {
54 _method = method;
55 if ( ! _method.equals( Method.XML ) &&
56 ! _method.equals( Method.HTML ) &&
57 ! _method.equals( Method.XHTML ) &&
58 ! _method.equals( Method.TEXT ) ) {
59 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "MethodNotSupported", new Object[]{method});
|
19 * limitations under the License.
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.OutputStream;
27 import java.io.Writer;
28 import java.io.UnsupportedEncodingException;
29 import com.sun.org.apache.xerces.internal.dom.DOMMessageFormatter;
30
31 /**
32 * Default serializer factory can construct serializers for the three
33 * markup serializers (XML, HTML, XHTML ).
34 *
35 *
36 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
37 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
38 *
39 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
40 * is replaced by that of Xalan. Main class
41 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
42 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
43 */
44 final class SerializerFactoryImpl
45 extends SerializerFactory
46 {
47
48
49 private String _method;
50
51
52 SerializerFactoryImpl( String method )
53 {
54 _method = method;
55 if ( ! _method.equals( Method.XML ) &&
56 ! _method.equals( Method.HTML ) &&
57 ! _method.equals( Method.XHTML ) &&
58 ! _method.equals( Method.TEXT ) ) {
59 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "MethodNotSupported", new Object[]{method});
|