• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java EventConsumer类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中gnu.xml.pipeline.EventConsumer的典型用法代码示例。如果您正苦于以下问题:Java EventConsumer类的具体用法?Java EventConsumer怎么用?Java EventConsumer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

EventConsumer类属于gnu.xml.pipeline包,在下文中一共展示了EventConsumer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: hasValidator

点赞 3

import gnu.xml.pipeline.EventConsumer; //导入依赖的package包/类
private static boolean hasValidator (EventConsumer e)
{
    if (e == null)
        return false;
    if (e instanceof ValidationConsumer)
        return true;
    if (e instanceof TeeConsumer) {
        TeeConsumer t = (TeeConsumer) e;
        return hasValidator (t.getFirst ())
            || hasValidator (t.getRest ());
    }
    if (e instanceof WellFormednessFilter
            || e instanceof NSFilter
            )
        return hasValidator (((EventFilter)e).getNext ());

    // else ... gee, we can't know.  Assume not.

    return false;
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:21,
代码来源:DoParse.java

示例2: hasValidator

点赞 3

import gnu.xml.pipeline.EventConsumer; //导入依赖的package包/类
private static boolean hasValidator (EventConsumer e)
   {
if (e == null)
    return false;
if (e instanceof ValidationConsumer)
    return true;
if (e instanceof TeeConsumer) {
    TeeConsumer	t = (TeeConsumer) e;
    return hasValidator (t.getFirst ())
	|| hasValidator (t.getRest ());
}
if (e instanceof WellFormednessFilter
	|| e instanceof NSFilter
	)
    return hasValidator (((EventFilter)e).getNext ());

// else ... gee, we can't know.  Assume not.

return false;
   }
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:21,
代码来源:DoParse.java

示例3: Consumer

点赞 2

import gnu.xml.pipeline.EventConsumer; //导入依赖的package包/类
/**
 * Constructs an unconfigured event consumer,
 * as a stage in a SAX event pipeline.
 */
// used by PipelineFactory [filter]
public Consumer (EventConsumer next)
throws SAXException
{
    super (DomDocument.class, next);
    setHandler (new Backdoor (this));
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:12,
代码来源:Consumer.java

示例4: Consumer

点赞 2

import gnu.xml.pipeline.EventConsumer; //导入依赖的package包/类
/**
    * Constructs an unconfigured event consumer,
    * as a stage in a SAX event pipeline.
    */
   // used by PipelineFactory [filter]
   public Consumer (EventConsumer next)
   throws SAXException
   {
super (DomDocument.class, next);
setHandler (new Backdoor (this));
   }
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:12,
代码来源:Consumer.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)