程序包 org.anyline.net
类 VCFUtil
- java.lang.Object
-
- org.anyline.net.VCFUtil
-
public class VCFUtil extends Object
-
-
构造器概要
构造器 构造器 说明 VCFUtil()
-
-
-
方法详细资料
-
format
public static String format(String mobile, String name)
生成通讯录格式- 参数:
mobile- 手机号name- 姓名- 返回:
- cvf格式内容 BEGIN:VCARD VERSION:2.1 N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:;encode(姓名);;; TEL;CELL:手机号 END:VCARD
-
encode
public static String encode(String str)
编码 UTF8 quoted-printable- 参数:
str- 需要编码的字符串- 返回:
- 编码后的字符串
-
-