当前位置:网站首页>简单介绍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
边栏推荐
- 871. 最低加油次数
- Amazon cloud technology community builder application window opens
- One year is worth ten years
- 社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
- 深度之眼(二)——矩阵及其基本运算
- Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
- Shutter: action feedback
- Blog theme "text" summer fresh Special Edition
- Believe in yourself and finish the JVM interview this time
- QWebEngineView崩溃及替代方案
猜你喜欢
Sword finger offer 25 Merge two sorted linked lists
配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
Does digicert SSL certificate support Chinese domain name application?
Eth data set download and related problems
linux下配置Mysql授权某个用户远程访问,不受ip限制
Eye of depth (II) -- matrix and its basic operations
ThreadLocal
[shutter] dart data type (dynamic data type)
How to transfer business data with BorgWarner through EDI?
随机推荐
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
Does digicert SSL certificate support Chinese domain name application?
Error when uploading code to remote warehouse: remote origin already exists
871. Minimum refueling times
Vscode setting delete line shortcut [easy to understand]
Sword finger offer 24 Reverse linked list
PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
寒门再出贵子:江西穷县考出了省状元,做对了什么?
Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品
【Leetcode】14. 最長公共前綴
Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
Seven charts, learn to do valuable business analysis
Ap和F107数据来源及处理
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
Leetcode question brushing record | 933_ Recent requests
Sword finger offer 25 Merge two sorted linked lists
Youzan won the "top 50 Chinese enterprise cloud technology service providers" together with Tencent cloud and Alibaba cloud [easy to understand]
VMware安装win10镜像
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
Easy language ABCD sort