程序包 org.anyline.net

类 VCFUtil


  • public class VCFUtil
    extends Object
    • 构造器详细资料

      • VCFUtil

        public 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
      • format

        public static String format​(List<String> mobiles)
        批量生成
        参数:
        mobiles - 手机号或手机号, 姓名
        返回:
        String
      • encode

        public static String encode​(String str)
        编码 UTF8 quoted-printable
        参数:
        str - 需要编码的字符串
        返回:
        编码后的字符串
      • decode

        public static String decode​(String str)
        解码 UTF8 quoted-printable
        参数:
        str - 需要解码的字符串
        返回:
        解码后的字符串