Examples of areThereMsgs()


Examples of org.jivesoftware.openfire.nio.XMLLightweightParser.areThereMsgs()

    //session创建的时候,初始化的这个解析器实例:XMLLightweightParser parser = new XMLLightweightParser("UTF-8");
        XMLLightweightParser parser = (XMLLightweightParser) session
                                       .getAttribute(XmppIoHandler.XML_PARSER); // 二进制格式转换为xml
            parser.read(in);
         // 判断是否还有数据可读取
        if (parser.areThereMsgs()) {
          // 将二进制数据转解析成xml
            for (String stanza : parser.getMsgs()) {
                out.write(stanza);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.