本文整理汇总了Java中org.jivesoftware.smack.sm.packet.StreamManagement.StreamManagementFeature类的典型用法代码示例。如果您正苦于以下问题:Java StreamManagementFeature类的具体用法?Java StreamManagementFeature怎么用?Java StreamManagementFeature使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StreamManagementFeature类属于org.jivesoftware.smack.sm.packet.StreamManagement包,在下文中一共展示了StreamManagementFeature类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parse
import org.jivesoftware.smack.sm.packet.StreamManagement.StreamManagementFeature; //导入依赖的package包/类
@Override
public StreamManagementFeature parse(XmlPullParser parser,
int initialDepth) {
return StreamManagementFeature.INSTANCE;
}
示例2: isSmAvailable
import org.jivesoftware.smack.sm.packet.StreamManagement.StreamManagementFeature; //导入依赖的package包/类
/**
* Returns true if Stream Management is supported by the server.
*
* @return true if Stream Management is supported by the server.
*/
public boolean isSmAvailable() {
return hasFeature(StreamManagementFeature.ELEMENT, StreamManagement.NAMESPACE);
}