com.sun.org.apache.xml.internal.serializer.utils.DOM2Helper Java Examples
The following examples show how to use
com.sun.org.apache.xml.internal.serializer.utils.DOM2Helper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TreeWalker.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Constructor. * @param contentHandler The implemention of the * contentHandler operation (toXMLString, digest, ...) */ public TreeWalker(ContentHandler contentHandler, String systemId) { // Set the content handler m_contentHandler = contentHandler; if (m_contentHandler instanceof SerializationHandler) { m_Serializer = (SerializationHandler) m_contentHandler; } else { m_Serializer = null; } // Set the system ID, if it is given m_contentHandler.setDocumentLocator(m_locator); if (systemId != null) { m_locator.setSystemId(systemId); } m_dh = new DOM2Helper(); }
Example #2
Source File: TreeWalker.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Constructor. * @param contentHandler The implemention of the * contentHandler operation (toXMLString, digest, ...) */ public TreeWalker(ContentHandler contentHandler, String systemId) { // Set the content handler m_contentHandler = contentHandler; if (m_contentHandler instanceof SerializationHandler) { m_Serializer = (SerializationHandler) m_contentHandler; } else { m_Serializer = null; } // Set the system ID, if it is given m_contentHandler.setDocumentLocator(m_locator); if (systemId != null) { m_locator.setSystemId(systemId); } m_dh = new DOM2Helper(); }
Example #3
Source File: TreeWalker.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Constructor. * @param contentHandler The implemention of the * contentHandler operation (toXMLString, digest, ...) */ public TreeWalker(ContentHandler contentHandler, String systemId) { // Set the content handler m_contentHandler = contentHandler; if (m_contentHandler instanceof SerializationHandler) { m_Serializer = (SerializationHandler) m_contentHandler; } else { m_Serializer = null; } // Set the system ID, if it is given m_contentHandler.setDocumentLocator(m_locator); if (systemId != null) { m_locator.setSystemId(systemId); } m_dh = new DOM2Helper(); }