public class Base64Decoder extends Object
Constructor and Description |
---|
Base64Decoder() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] in)
解码Base64
|
static byte[] |
decode(byte[] in,
int pos,
int length)
解码Base64
|
static byte[] |
decode(CharSequence source)
base64解码
|
static String |
decodeStr(CharSequence source)
base64解码
|
static String |
decodeStr(CharSequence source,
Charset charset)
base64解码
|
static boolean |
isBase64Code(byte octet)
给定的字符是否为Base64字符
|
public static String decodeStr(CharSequence source)
source
- 被解码的base64字符串public static String decodeStr(CharSequence source, Charset charset)
source
- 被解码的base64字符串charset
- 字符集public static byte[] decode(CharSequence source)
source
- 被解码的base64字符串public static byte[] decode(byte[] in)
in
- 输入public static byte[] decode(byte[] in, int pos, int length)
in
- 输入pos
- 开始位置length
- 长度public static boolean isBase64Code(byte octet)
octet
- 被检查的字符Copyright © 2024. All rights reserved.