当前位置:网站首页>简单介绍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
边栏推荐
- 学习周刊-总第60期-2022年第25周
- Goodbye, shucang. Alibaba's data Lake construction strategy is really awesome!
- lsf基础命令
- Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
- What is generics- Introduction to generics
- Believe in yourself and finish the JVM interview this time
- traceroute命令讲解
- Easy language ABCD sort
- 默认浏览器设置不了怎么办?
- 关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
猜你喜欢

畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权

配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)

Experience home office, feel the completion of the project | community essay solicitation

福元医药上交所上市:市值105亿 胡柏藩身价超40亿

深度之眼(三)——矩阵的行列式

Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...

Believe in yourself and finish the JVM interview this time

亚马逊云科技 Community Builder 申请窗口开启

移动应用性能工具探索之路

Sword finger offer 26 Substructure of tree
随机推荐
GeoServer:发布PostGIS数据源
2、 Expansion of mock platform
Talk about an experience of job hopping and being rejected
剑指 Offer 24. 反转链表
深度学习图像数据自动标注[通俗易懂]
Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
Chapter 3 of hands on deep learning - (1) linear regression is realized from scratch_ Learning thinking and exercise answers
Ocio V2 reverse LUT
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
OpenPose的使用
Dgraph: large scale dynamic graph dataset
The impact of telecommuting on all aspects of our experience | community essay solicitation
2022 interview questions
对接保时捷及3PL EDI案例
Learning Weekly - total issue 60 - 25th week of 2022
Detailed explanation of @accessories annotation of Lombok plug-in
Believe in yourself and finish the JVM interview this time
The beginning of life
TCP congestion control details | 2 background
Use the API port of the bridge of knowledge and action to provide resources for partners to access