当前位置: 首页>>代码示例>>Java>>正文


Java XPPPacketReader类代码示例

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


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

示例1: resetParser

import org.dom4j.io.XPPPacketReader; //导入依赖的package包/类
/**
 * Resets the parser using the latest connection's reader. Reseting the
 * parser is necessary when the plain connection has been secured or when a
 * new opening stream element is going to be sent by the server.
 */
private void resetParser() {
    try {
        innerReader = new XPPPacketReader();
        innerReader.setXPPFactory(XmlPullParserFactory.newInstance());
        innerReader.getXPPParser().setInput(connection.reader);
        reset = true;
    } catch (Exception xppe) {
        LOGGER.log(Level.WARN, "Error while resetting parser", xppe);
    }
}
 
开发者ID:abmargb,项目名称:jamppa,代码行数:16,代码来源:PacketReader.java

示例2: SocketReadThread

import org.dom4j.io.XPPPacketReader; //导入依赖的package包/类
/**
 * Create dedicated read thread for this socket.
 *
 * @param component  The component for which this thread is reading for
 * @param reader     The reader to use for reading
 */
public SocketReadThread(ExternalComponent component, XPPPacketReader reader) {
    super("Component socket reader");
    this.component = component;
    this.reader = reader;
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:12,代码来源:SocketReadThread.java

示例3: SocketReadThread

import org.dom4j.io.XPPPacketReader; //导入依赖的package包/类
/**
 * Create dedicated read thread for this socket.
 * 
 * @param component
 *            The component for which this thread is reading for
 * @param reader
 *            The reader to use for reading
 */
public SocketReadThread(ExternalComponent component, XPPPacketReader reader) {
    super("Component socket reader");
    this.component = component;
    this.reader = reader;
}
 
开发者ID:abmargb,项目名称:jamppa,代码行数:14,代码来源:SocketReadThread.java


注:本文中的org.dom4j.io.XPPPacketReader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。