< prev index next >

src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLDOMWriterImpl.java

Print this page




  30 import java.lang.reflect.InvocationTargetException;
  31 import java.lang.reflect.Method;
  32 import javax.xml.XMLConstants;
  33 import javax.xml.namespace.NamespaceContext;
  34 import javax.xml.stream.XMLStreamException;
  35 import javax.xml.stream.XMLStreamWriter;
  36 import javax.xml.transform.dom.DOMResult;
  37 import org.w3c.dom.Attr;
  38 import org.w3c.dom.CDATASection;
  39 import org.w3c.dom.Comment;
  40 import org.w3c.dom.Document;
  41 import org.w3c.dom.Element;
  42 import org.w3c.dom.EntityReference;
  43 import org.w3c.dom.Node;
  44 import org.w3c.dom.ProcessingInstruction;
  45 import org.w3c.dom.Text;
  46 import org.xml.sax.helpers.NamespaceSupport;
  47 
  48 /**
  49  * This class provides support to build a DOM tree using XMLStreamWriter API's.
  50  * @author K.Venugopal@sun.com
  51  */
  52 
  53 /*
  54  * TODO : -Venu
  55  * Internal NamespaceManagement
  56  * setPrefix
  57  * support for isRepairNamespace property.
  58  * Some Unsupported Methods.
  59  * Change StringBuffer to StringBuilder, when JDK 1.5 will be minimum requirement for SJSXP.
  60  */
  61 
  62 public class XMLDOMWriterImpl implements XMLStreamWriterBase  {
  63 
  64 
  65     private Document ownerDoc = null;
  66     private Node currentNode = null;
  67     private Node node = null;
  68     private NamespaceSupport namespaceContext = null;
  69     private boolean [] needContextPop = null;
  70     private StringBuffer stringBuffer = null;




  30 import java.lang.reflect.InvocationTargetException;
  31 import java.lang.reflect.Method;
  32 import javax.xml.XMLConstants;
  33 import javax.xml.namespace.NamespaceContext;
  34 import javax.xml.stream.XMLStreamException;
  35 import javax.xml.stream.XMLStreamWriter;
  36 import javax.xml.transform.dom.DOMResult;
  37 import org.w3c.dom.Attr;
  38 import org.w3c.dom.CDATASection;
  39 import org.w3c.dom.Comment;
  40 import org.w3c.dom.Document;
  41 import org.w3c.dom.Element;
  42 import org.w3c.dom.EntityReference;
  43 import org.w3c.dom.Node;
  44 import org.w3c.dom.ProcessingInstruction;
  45 import org.w3c.dom.Text;
  46 import org.xml.sax.helpers.NamespaceSupport;
  47 
  48 /**
  49  * This class provides support to build a DOM tree using XMLStreamWriter API's.
  50  * @author K Venugopal
  51  */
  52 
  53 /*
  54  * TODO : -Venu
  55  * Internal NamespaceManagement
  56  * setPrefix
  57  * support for isRepairNamespace property.
  58  * Some Unsupported Methods.
  59  * Change StringBuffer to StringBuilder, when JDK 1.5 will be minimum requirement for SJSXP.
  60  */
  61 
  62 public class XMLDOMWriterImpl implements XMLStreamWriterBase  {
  63 
  64 
  65     private Document ownerDoc = null;
  66     private Node currentNode = null;
  67     private Node node = null;
  68     private NamespaceSupport namespaceContext = null;
  69     private boolean [] needContextPop = null;
  70     private StringBuffer stringBuffer = null;


< prev index next >