com.sun.org.apache.xpath.internal.objects.XObject.dispatchCharactersEvents()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中com.sun.org.apache.xpath.internal.objects.XObject.dispatchCharactersEvents()方法的一些代码示例,展示了XObject.dispatchCharactersEvents()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject.dispatchCharactersEvents()方法的具体详情如下:
包路径:com.sun.org.apache.xpath.internal.objects.XObject
类名称:XObject
方法名:dispatchCharactersEvents

XObject.dispatchCharactersEvents介绍

[英]Directly call the characters method on the passed ContentHandler for the string-value. Multiple calls to the ContentHandler's characters methods may well occur for a single call to this method.
[中]直接调用传递的ContentHandler上的characters方法获取字符串值。对ContentHandler的characters方法的多次调用很可能会发生在对该方法的一次调用中。

代码示例

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Execute an expression in the XPath runtime context, and return the
 * result of the expression.
 *
 *
 * @param xctxt The XPath runtime context.
 * NEEDSDOC @param handler
 *
 * @return The result of the expression in the form of a <code>XObject</code>.
 *
 * @throws javax.xml.transform.TransformerException if a runtime exception
 *         occurs.
 * @throws org.xml.sax.SAXException
 */
public void executeCharsToContentHandler(
    XPathContext xctxt, ContentHandler handler)
     throws javax.xml.transform.TransformerException,
         org.xml.sax.SAXException
{
 XObject obj = execute(xctxt);
 obj.dispatchCharactersEvents(handler);
 obj.detach();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Execute an expression in the XPath runtime context, and return the
 * result of the expression.
 *
 *
 * @param xctxt The XPath runtime context.
 * NEEDSDOC @param handler
 *
 * @return The result of the expression in the form of a <code>XObject</code>.
 *
 * @throws javax.xml.transform.TransformerException if a runtime exception
 *         occurs.
 * @throws org.xml.sax.SAXException
 */
public void executeCharsToContentHandler(
    XPathContext xctxt, ContentHandler handler)
     throws javax.xml.transform.TransformerException,
         org.xml.sax.SAXException
{
 XObject obj = execute(xctxt);
 obj.dispatchCharactersEvents(handler);
 obj.detach();
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

obj.dispatchCharactersEvents(handler);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

obj.dispatchCharactersEvents(handler);

相关文章