设为首页 加入收藏

TOP

Hive的Base64使用
2019-01-19 13:03:16 】 浏览:61
Tags:Hive Base64 使用
 public static void main(String[] args) throws IOException {
        BASE64Encoder base64=new BASE64Encoder();
        base64.encode("http://www.xnhzj.com/".getBytes("utf-8"), System.out);
        System.out.println();
        String apache = new String(org.apache.commons.codec.binary.Base64.encodeBase64("http://www.xnhzj.com/".getBytes()));
        System.out.println(apache);
        System.out.println();
        BASE64Decoder base64De = new BASE64Decoder();
        System.out.println(new String(base64De.decodeBuffer(new ByteArrayInputStream(apache.getBytes("utf-8")))));
        List< extends Object> lit = new ArrayList<String>();
    }

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇java调用hive 下一篇Hive集群搭建

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目