66 * <p>
67 * The serializer supports both DOM and SAX. SAX serializing is done by firing
68 * SAX events and using the serializer as a document handler. DOM serializing is done
69 * by calling {@link #serialize(Document)} or by using DOM Level 3
70 * {@link org.w3c.dom.ls.LSSerializer} and
71 * serializing with {@link org.w3c.dom.ls.LSSerializer#write},
72 * {@link org.w3c.dom.ls.LSSerializer#writeToString}.
73 * <p>
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
|
66 * <p>
67 * The serializer supports both DOM and SAX. SAX serializing is done by firing
68 * SAX events and using the serializer as a document handler. DOM serializing is done
69 * by calling {@link #serialize(Document)} or by using DOM Level 3
70 * {@link org.w3c.dom.ls.LSSerializer} and
71 * serializing with {@link org.w3c.dom.ls.LSSerializer#write},
72 * {@link org.w3c.dom.ls.LSSerializer#writeToString}.
73 * <p>
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 Rahul Srivastava
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
|