本文整理汇总了Java中org.jivesoftware.smack.parsing.ParsingExceptionCallback类的典型用法代码示例。如果您正苦于以下问题:Java ParsingExceptionCallback类的具体用法?Java ParsingExceptionCallback怎么用?Java ParsingExceptionCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParsingExceptionCallback类属于org.jivesoftware.smack.parsing包,在下文中一共展示了ParsingExceptionCallback类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: parseAndProcessStanza
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
protected void parseAndProcessStanza(XmlPullParser parser) throws Exception {
ParserUtils.assertAtStartTag(parser);
int parserDepth = parser.getDepth();
Stanza stanza = null;
try {
stanza = PacketParserUtils.parseStanza(parser);
}
catch (Exception e) {
CharSequence content = PacketParserUtils.parseContentDepth(parser,
parserDepth);
UnparsablePacket message = new UnparsablePacket(content, e);
ParsingExceptionCallback callback = getParsingExceptionCallback();
if (callback != null) {
callback.handleUnparsablePacket(message);
}
}
ParserUtils.assertAtEndTag(parser);
if (stanza != null) {
processPacket(stanza);
}
}
开发者ID:TTalkIM,项目名称:Smack,代码行数:22,代码来源:AbstractXMPPConnection.java
示例2: setParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Install a parsing exception callback, which will be invoked once an exception is encountered while parsing a
* stanza
*
* @param callback the callback to install
*/
public void setParsingExceptionCallback(ParsingExceptionCallback callback) {
parsingExceptionCallback = callback;
}
开发者ID:TTalkIM,项目名称:Smack,代码行数:10,代码来源:AbstractXMPPConnection.java
示例3: getParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Get the current active parsing exception callback.
*
* @return the active exception callback or null if there is none
*/
public ParsingExceptionCallback getParsingExceptionCallback() {
return parsingExceptionCallback;
}
开发者ID:TTalkIM,项目名称:Smack,代码行数:9,代码来源:AbstractXMPPConnection.java
示例4: setDefaultParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Set the default parsing exception callback for all newly created connections
*
* @param callback
* @see ParsingExceptionCallback
*/
public static void setDefaultParsingExceptionCallback(ParsingExceptionCallback callback) {
defaultCallback = callback;
}
开发者ID:TTalkIM,项目名称:Smack,代码行数:10,代码来源:SmackConfiguration.java
示例5: getDefaultParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Returns the default parsing exception callback
*
* @return the default parsing exception callback
* @see ParsingExceptionCallback
*/
public static ParsingExceptionCallback getDefaultParsingExceptionCallback() {
return defaultCallback;
}
开发者ID:TTalkIM,项目名称:Smack,代码行数:10,代码来源:SmackConfiguration.java
示例6: setParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Install a parsing exception callback, which will be invoked once an
* exception is encountered while parsing a stanza
*
* @param callback
* the callback to install
*/
public void setParsingExceptionCallback(ParsingExceptionCallback callback) {
parsingExceptionCallback = callback;
}
开发者ID:abmargb,项目名称:jamppa,代码行数:11,代码来源:XMPPConnection.java
示例7: getParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Get the current active parsing exception callback.
*
* @return the active exception callback or null if there is none
*/
public ParsingExceptionCallback getParsingExceptionCallback() {
return parsingExceptionCallback;
}
开发者ID:abmargb,项目名称:jamppa,代码行数:9,代码来源:XMPPConnection.java
示例8: setDefaultParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Set the default parsing exception callback for all newly created
* connections
*
* @param callback
* @see ParsingExceptionCallback
*/
public static void setDefaultParsingExceptionCallback(
ParsingExceptionCallback callback) {
initialize();
defaultCallback = callback;
}
开发者ID:abmargb,项目名称:jamppa,代码行数:13,代码来源:SmackConfiguration.java
示例9: getDefaultParsingExceptionCallback
import org.jivesoftware.smack.parsing.ParsingExceptionCallback; //导入依赖的package包/类
/**
* Returns the default parsing exception callback
*
* @return the default parsing exception callback
* @see ParsingExceptionCallback
*/
public static ParsingExceptionCallback getDefaultParsingExceptionCallback() {
initialize();
return defaultCallback;
}
开发者ID:abmargb,项目名称:jamppa,代码行数:11,代码来源:SmackConfiguration.java
注:本文中的org.jivesoftware.smack.parsing.ParsingExceptionCallback类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论