本文整理汇总了Java中com.sun.org.apache.xml.internal.utils.ThreadControllerWrapper类的典型用法代码示例。如果您正苦于以下问题:Java ThreadControllerWrapper类的具体用法?Java ThreadControllerWrapper怎么用?Java ThreadControllerWrapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ThreadControllerWrapper类属于com.sun.org.apache.xml.internal.utils包,在下文中一共展示了ThreadControllerWrapper类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startParse
import com.sun.org.apache.xml.internal.utils.ThreadControllerWrapper; //导入依赖的package包/类
/** Launch a thread that will run an XMLReader's parse() operation within
* a thread, feeding events to this IncrementalSAXSource_Filter. Mostly a convenience
* routine, but has the advantage that -- since we invoked parse() --
* we can halt parsing quickly via a StopException rather than waiting
* for the SAX stream to end by itself.
*
* @throws SAXException is parse thread is already in progress
* or parsing can not be started.
* */
public void startParse(InputSource source) throws SAXException
{
if(fNoMoreEvents)
throw new SAXException(XMLMessages.createXMLMessage(XMLErrorResources.ER_INCRSAXSRCFILTER_NOT_RESTARTABLE, null)); //"IncrmentalSAXSource_Filter not currently restartable.");
if(fXMLReader==null)
throw new SAXException(XMLMessages.createXMLMessage(XMLErrorResources.ER_XMLRDR_NOT_BEFORE_STARTPARSE, null)); //"XMLReader not before startParse request");
fXMLReaderInputSource=source;
// Xalan thread pooling...
// com.sun.org.apache.xalan.internal.transformer.TransformerImpl.runTransformThread(this);
ThreadControllerWrapper.runThread(this, -1);
}