本文整理汇总了Java中com.sun.xml.internal.stream.XMLBufferListener类的典型用法代码示例。如果您正苦于以下问题:Java XMLBufferListener类的具体用法?Java XMLBufferListener怎么用?Java XMLBufferListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLBufferListener类属于com.sun.xml.internal.stream包,在下文中一共展示了XMLBufferListener类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: invokeListeners
import com.sun.xml.internal.stream.XMLBufferListener; //导入依赖的package包/类
/**
*
* @param loadPos Starting position from which new data is being loaded into scanner buffer.
*/
public void invokeListeners(int loadPos){
for(int i=0;i<listeners.size();i++){
XMLBufferListener listener =(XMLBufferListener) listeners.get(i);
listener.refresh(loadPos);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:XMLEntityScanner.java
示例2: invokeListeners
import com.sun.xml.internal.stream.XMLBufferListener; //导入依赖的package包/类
/**
*
* @param loadPos Starting position from which new data is being loaded into scanner buffer.
*/
private void invokeListeners(int loadPos){
for(int i=0;i<listeners.size();i++){
XMLBufferListener listener =(XMLBufferListener) listeners.get(i);
listener.refresh(loadPos);
}
}
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:XMLEntityScanner.java
示例3: registerListener
import com.sun.xml.internal.stream.XMLBufferListener; //导入依赖的package包/类
/**
* Registers the listener object and provides callback.
* @param listener listener to which call back should be provided when scanner buffer
* is being changed.
*/
public void registerListener(XMLBufferListener listener) {
if (!listeners.contains(listener)) {
listeners.add(listener);
}
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:11,代码来源:XMLEntityScanner.java
示例4: registerListener
import com.sun.xml.internal.stream.XMLBufferListener; //导入依赖的package包/类
/**
* Registers the listener object and provides callback.
* @param listener listener to which call back should be provided when scanner buffer
* is being changed.
*/
public void registerListener(XMLBufferListener listener) {
if(!listeners.contains(listener))
listeners.add(listener);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XMLEntityScanner.java
注:本文中的com.sun.xml.internal.stream.XMLBufferListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论