1、XMPPConnection:它主要是用来创建一个跟XMPP服务端的Socket连接。它是与Jabber服务端的默认连接并且已经在RFC
3920中精确定义过了。示例如下: XMPPConnection connection=new XMPPConnection(configuration...
分类:
其他好文 时间:
2014-06-07 02:11:01
阅读次数:
164
1 class A{ 2 static int num = 1; 3 public static
void Display(){ 4 System.out.println( num ); 5 } 6 } 7 8 class B extends A{ 9
...
分类:
其他好文 时间:
2014-06-04 22:47:14
阅读次数:
219
当进入改壁纸的设置页面 但是还没有设置时09-21 07:55:05.575:
INFO/System.out(1337): service onCreate09-21 07:55:05.614:
INFO/System.out(1337): service onCreateEngine09-21 ...
分类:
移动开发 时间:
2014-05-30 06:36:56
阅读次数:
284
ref和out的使用与区别out的使用—————————————————————————————————————————————————
class Program { static void Main(string[] args) { string tmp;//先声明,但不初始化 ...
分类:
其他好文 时间:
2014-05-30 04:49:48
阅读次数:
154
一、方法传不固定值的用法 public void Test(int a,Person
...Persons) { for(Person p:Persons){ System.out.println(p.age); } }
好处是不用去构造数组Persons...
分类:
编程语言 时间:
2014-05-29 21:53:36
阅读次数:
337
这两天遇到一个问题,调用一个WCF服务的时候,服务器端正常的返回了数据,但是客户端却遇到了一场System.ServiceModel.CommunicationException:
The underlying connection was closed: The connection was cl...
分类:
其他好文 时间:
2014-05-29 20:56:56
阅读次数:
276
publicstaticvoidmain(String[]argv){try{
System.out.println(“中文”);//1 System.out.println(“中文”.getBytes());//2
System.out.println(“中文”.getBytes(“GB2312″...
分类:
编程语言 时间:
2014-05-29 20:24:06
阅读次数:
424
我这个是窃取我们公司同事的劳动成果,分享出来,看谁用到就帮助谁了,嘿嘿!!!一:取出字符串中的汉字(只保留汉字)的正则表达式:
Stringstr="sa汉字e3中国人r#|c";System.out.println(str.replaceAll("[^\u4E00-\u9FA5]",""));二:...
分类:
其他好文 时间:
2014-05-29 19:21:11
阅读次数:
306
1:标准输出;2:错误输出1,exec启动一个新的shell将STDOUT文件描述符重定向到文件#!/bin/shecho
"test exec..."exec > out.txt exec 2> out.errorecho "this is the first
line"#故意生成错误信息,将输出...
分类:
系统相关 时间:
2014-05-29 10:28:51
阅读次数:
326
1 Http的特点: Http是无状态、并发的。 Http可以支持任意类型的数据传输。
Http从1.1开始支持长连接,所谓长连接,即服务器不会轻易关闭一个连接,节省了频繁新建和关闭连接的代价;为TCP的的握手和拥塞控制等稳定性控制争取了时间。
Http一般是客户先通过connection-...
分类:
其他好文 时间:
2014-05-29 08:27:10
阅读次数:
256