当前位置:网站首页>简单介绍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
边栏推荐
- Un an à dix ans
- R and rstudio download and installation tutorial (super detailed)
- 学习周刊-总第60期-2022年第25周
- VMware install win10 image
- A case study of college entrance examination prediction based on multivariate time series
- Domestic relatively good OJ platform [easy to understand]
- How to transfer business data with BorgWarner through EDI?
- 对接保时捷及3PL EDI案例
- 【Leetcode】13. 罗马数字转整数
- Leetcode question brushing record | 933_ Recent requests
猜你喜欢

Seven charts, learn to do valuable business analysis

ThreadLocal

The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?

Linux Installation PostgreSQL + Patroni cluster problem

Use the API port of the bridge of knowledge and action to provide resources for partners to access

ETH数据集下载及相关问题

Baobab's gem IPO was terminated: Tang Guangyu once planned to raise 1.8 billion to control 47% of the equity

Easy language ABCD sort

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

使用知行之桥的API端口,提供资源供合作伙伴访问
随机推荐
13、Darknet YOLO3
Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
Ap和F107数据来源及处理
[essay solicitation activity] Dear developer, RT thread community calls you to contribute
Eye of depth (III) -- determinant of matrix
【Leetcode】13. Roman numeral to integer
GeoServer:发布PostGIS数据源
QWebEngineView崩溃及替代方案
Role and function of uboot
The impact of telecommuting on all aspects of our experience | community essay solicitation
Connect Porsche and 3PL EDI cases
学习周刊-总第60期-2022年第25周
Blog theme "text" summer fresh Special Edition
[fluent] dart data type map type (create map set | initialize map set | traverse map set)
宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
871. 最低加油次数
System Verilog implements priority arbiter
js删除字符串中的子串
What will you do after digital IC Verification?
TCP拥塞控制详解 | 2. 背景