Java 类org.dom4j.io.XPPPacketReader 实例源码

项目:jamppa    文件:PacketReader.java   
/**
 * 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);
    }
}
项目:Intercloud    文件:SocketReadThread.java   
/**
 * 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;
}
项目:Whack    文件:SocketReadThread.java   
/**
 * 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;
}
项目:jamppa    文件:SocketReadThread.java   
/**
 * 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;
}