20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.IOException;
27 import org.w3c.dom.Element;
28 import org.w3c.dom.Document;
29 import org.w3c.dom.DocumentFragment;
30
31
32
33 /**
34 * Interface for a DOM serializer implementation.
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 1.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 public interface DOMSerializer
46 {
47
48
49 /**
50 * Serialized the DOM element. Throws an exception only if
51 * an I/O exception occured while serializing.
52 *
53 * @param elem The element to serialize
54 * @throws IOException An I/O exception occured while
55 * serializing
56 */
57 public void serialize( Element elem )
58 throws IOException;
59
60
|
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.IOException;
27 import org.w3c.dom.Element;
28 import org.w3c.dom.Document;
29 import org.w3c.dom.DocumentFragment;
30
31
32
33 /**
34 * Interface for a DOM serializer implementation.
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 public interface DOMSerializer
46 {
47
48
49 /**
50 * Serialized the DOM element. Throws an exception only if
51 * an I/O exception occured while serializing.
52 *
53 * @param elem The element to serialize
54 * @throws IOException An I/O exception occured while
55 * serializing
56 */
57 public void serialize( Element elem )
58 throws IOException;
59
60
|