当前位置:网站首页>简单介绍BASE64Encoder的使用
简单介绍BASE64Encoder的使用
2022-07-02 14:43:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
BASE64Encoder 其实是在jkd中的,但是默认不开放,在API中也是找不到的
所以先看看怎么将其导入:
右击项目–build path–>>configure build path–>>
双击Access rules–>>edit–>>edit–>>
修改为accessible,Rule Pattern为**
OK了
下面测试代码:
package cn.bl;
import org.junit.Test;
import sun.misc.BASE64Encoder;
public class Demo1 {
@Test
public void test1(){
BASE64Encoder encoder = new BASE64Encoder();
System.out.println(encoder.encode("java".getBytes()));//amF2YQ==
}
}
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/147975.html原文链接:https://javaforall.cn
边栏推荐
- The beginning of life
- 一年頂十年
- 宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
- 电脑自带软件使图片底色变为透明(抠图白底)
- Learning Weekly - total issue 60 - 25th week of 2022
- 绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
- The macrogenome microbiome knowledge you want is all here (2022.7)
- 酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
- JS delete substring in string
- Sword finger offer 24 Reverse linked list
猜你喜欢
ETH数据集下载及相关问题
Atcoder beginer contest 169 (B, C, D unique decomposition, e mathematical analysis f (DP))
如何与博格华纳BorgWarner通过EDI传输业务数据?
The computer comes with software to make the background color of the picture transparent (matting white background)
默认浏览器设置不了怎么办?
A case study of college entrance examination prediction based on multivariate time series
【Leetcode】13. 罗马数字转整数
宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
How openharmony starts FA of remote devices
随机推荐
【Leetcode】13. Roman numeral to integer
深度之眼(三)——矩阵的行列式
Sword finger offer 25 Merge two sorted linked lists
【Leetcode】14. 最長公共前綴
Eye of depth (III) -- determinant of matrix
Tech talk activity preview | building intelligent visual products based on Amazon kVs
[error record] error -32000 received from application: there are no running service protocol
【Leetcode】13. 罗马数字转整数
IPtables中SNAT、DNAT和MASQUERADE的含义
福元医药上交所上市:市值105亿 胡柏藩身价超40亿
Shutter: action feedback
871. 最低加油次数
The macrogenome microbiome knowledge you want is all here (2022.7)
【Leetcode】14. Longest Common Prefix
In MySQL and Oracle, the boundary and range of between and precautions when querying the date
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
traceroute命令讲解
IP address translation address segment
博客主题 “Text“ 夏日清新特别版
Sword finger offer 27 Image of binary tree