heting

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            40 隨筆 :: 9 文章 :: 45 評論 :: 0 Trackbacks
          <2008年11月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

           1  
          import sun.misc.BASE64Decoder;
            
          public static String getFromBASE64(String s) 
           2        if (s == nullreturn null
           3        BASE64Decoder decoder = new BASE64Decoder(); 
           4        try 
           5        byte[] b = decoder.decodeBuffer(s); 
           6        return new String(b); 
           7        }
           catch (Exception e) 
           8        return null
           9        }
           
          10    }

          11    public static String getBASE64(String s) 
          12        if (s == nullreturn null
          13        return (new sun.misc.BASE64Encoder()).encode( s.getBytes() ); 
          14    }
           
          15    
          posted on 2008-11-08 10:47 賀挺 閱讀(1606) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 松桃| 洛南县| 富阳市| 南昌市| 新竹县| 井冈山市| 江孜县| 安图县| 常山县| 涪陵区| 凤庆县| 蓬安县| 堆龙德庆县| 新乐市| 尼勒克县| 定州市| 黄陵县| 遵义县| 罗田县| 休宁县| 锡林浩特市| 依安县| 大化| 万安县| 伊通| 调兵山市| 隆子县| 化德县| 揭西县| 太湖县| 武胜县| 大城县| 缙云县| 嘉禾县| 綦江县| 老河口市| 博爱县| 江门市| 罗山县| 于都县| 岗巴县|