< prev index next >

jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/DOMSerializerImpl.java

Print this page




  55 import org.w3c.dom.Node;
  56 import org.w3c.dom.ProcessingInstruction;
  57 import org.w3c.dom.ls.LSException;
  58 import org.w3c.dom.ls.LSOutput;
  59 import org.w3c.dom.ls.LSSerializer;
  60 import org.w3c.dom.ls.LSSerializerFilter;
  61 
  62 /**
  63  * EXPERIMENTAL: Implemenatation of DOM Level 3 org.w3c.ls.LSSerializer by
  64  * delegating serialization calls to <CODE>XMLSerializer</CODE>. LSSerializer
  65  * provides an API for serializing (writing) a DOM document out in an XML
  66  * document. The XML data is written to an output stream. During serialization
  67  * of XML data, namespace fixup is done when possible as defined in DOM Level 3
  68  * Core, Appendix B.
  69  *
  70  * @author Elena Litani, IBM
  71  * @author Gopal Sharma, Sun Microsystems
  72  * @author Arun Yadav, Sun Microsystems
  73  * @author Sunitha Reddy, Sun Microsystems
  74  *
  75  * @deprecated As of JDK 1.9, Xerces 2.9.0, replaced by
  76  * {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}
  77  */
  78 public class DOMSerializerImpl implements LSSerializer, DOMConfiguration {
  79 
  80     // TODO: When DOM Level 3 goes to REC replace method calls using
  81     // reflection for: getXmlEncoding, getInputEncoding and getXmlEncoding
  82     // with regular static calls on the Document object.
  83     // data
  84     // serializer
  85     private XMLSerializer serializer;
  86 
  87     // XML 1.1 serializer
  88     private XML11Serializer xml11Serializer;
  89 
  90     //Recognized parameters
  91     private DOMStringList fRecognizedParameters;
  92 
  93     /**
  94      * REVISIT: Currently we handle 3 different configurations, would be nice
  95      * just have one configuration that has different recognized parameters




  55 import org.w3c.dom.Node;
  56 import org.w3c.dom.ProcessingInstruction;
  57 import org.w3c.dom.ls.LSException;
  58 import org.w3c.dom.ls.LSOutput;
  59 import org.w3c.dom.ls.LSSerializer;
  60 import org.w3c.dom.ls.LSSerializerFilter;
  61 
  62 /**
  63  * EXPERIMENTAL: Implemenatation of DOM Level 3 org.w3c.ls.LSSerializer by
  64  * delegating serialization calls to <CODE>XMLSerializer</CODE>. LSSerializer
  65  * provides an API for serializing (writing) a DOM document out in an XML
  66  * document. The XML data is written to an output stream. During serialization
  67  * of XML data, namespace fixup is done when possible as defined in DOM Level 3
  68  * Core, Appendix B.
  69  *
  70  * @author Elena Litani, IBM
  71  * @author Gopal Sharma, Sun Microsystems
  72  * @author Arun Yadav, Sun Microsystems
  73  * @author Sunitha Reddy, Sun Microsystems
  74  *
  75  * @deprecated As of JDK 9, Xerces 2.9.0, replaced by
  76  * {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}
  77  */
  78 public class DOMSerializerImpl implements LSSerializer, DOMConfiguration {
  79 
  80     // TODO: When DOM Level 3 goes to REC replace method calls using
  81     // reflection for: getXmlEncoding, getInputEncoding and getXmlEncoding
  82     // with regular static calls on the Document object.
  83     // data
  84     // serializer
  85     private XMLSerializer serializer;
  86 
  87     // XML 1.1 serializer
  88     private XML11Serializer xml11Serializer;
  89 
  90     //Recognized parameters
  91     private DOMStringList fRecognizedParameters;
  92 
  93     /**
  94      * REVISIT: Currently we handle 3 different configurations, would be nice
  95      * just have one configuration that has different recognized parameters


< prev index next >