public class Base62 extends Object
Constructor and Description |
---|
Base62() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] base62bytes)
解码Base62
|
static byte[] |
decode(CharSequence base62Str)
Base62解码
|
static byte[] |
decodeInverted(byte[] base62bytes)
解码Base62(反转字母表模式)
|
static byte[] |
decodeInverted(CharSequence base62Str)
Base62解码(反转字母表模式)
|
static String |
decodeStr(CharSequence source)
Base62解码
|
static String |
decodeStr(CharSequence source,
Charset charset)
Base62解码
|
static String |
decodeStrGbk(CharSequence source)
Base62解码
|
static String |
decodeStrInverted(CharSequence source)
Base62解码(反转字母表模式)
|
static String |
decodeStrInverted(CharSequence source,
Charset charset)
Base62解码(反转字母表模式)
|
static File |
decodeToFile(CharSequence Base62,
File destFile)
Base62解码
|
static File |
decodeToFileInverted(CharSequence Base62,
File destFile)
Base62解码(反转字母表模式)
|
static void |
decodeToStream(CharSequence base62Str,
OutputStream out,
boolean isCloseOut)
Base62解码
|
static void |
decodeToStreamInverted(CharSequence base62Str,
OutputStream out,
boolean isCloseOut)
Base62解码(反转字母表模式)
|
static String |
encode(byte[] source)
Base62编码
|
static String |
encode(CharSequence source)
Base62编码
|
static String |
encode(CharSequence source,
Charset charset)
Base62编码
|
static String |
encode(File file)
Base62编码
|
static String |
encode(InputStream in)
Base62编码
|
static String |
encodeInverted(byte[] source)
Base62编码(反转字母表模式)
|
static String |
encodeInverted(CharSequence source)
Base62编码(反转字母表模式)
|
static String |
encodeInverted(CharSequence source,
Charset charset)
Base62编码(反转字母表模式)
|
static String |
encodeInverted(File file)
Base62编码(反转字母表模式)
|
static String |
encodeInverted(InputStream in)
Base62编码
|
public static String encode(CharSequence source)
source
- 被编码的Base62字符串public static String encode(CharSequence source, Charset charset)
source
- 被编码的Base62字符串charset
- 字符集public static String encode(byte[] source)
source
- 被编码的Base62字符串public static String encode(InputStream in)
in
- 被编码Base62的流(一般为图片流或者文件流)public static String encode(File file)
file
- 被编码Base62的文件public static String encodeInverted(CharSequence source)
source
- 被编码的Base62字符串public static String encodeInverted(CharSequence source, Charset charset)
source
- 被编码的Base62字符串charset
- 字符集public static String encodeInverted(byte[] source)
source
- 被编码的Base62字符串public static String encodeInverted(InputStream in)
in
- 被编码Base62的流(一般为图片流或者文件流)public static String encodeInverted(File file)
file
- 被编码Base62的文件public static String decodeStrGbk(CharSequence source)
source
- 被解码的Base62字符串public static String decodeStr(CharSequence source)
source
- 被解码的Base62字符串public static String decodeStr(CharSequence source, Charset charset)
source
- 被解码的Base62字符串charset
- 字符集public static File decodeToFile(CharSequence Base62, File destFile)
Base62
- 被解码的Base62字符串destFile
- 目标文件public static void decodeToStream(CharSequence base62Str, OutputStream out, boolean isCloseOut)
base62Str
- 被解码的Base62字符串out
- 写出到的流isCloseOut
- 是否关闭输出流public static byte[] decode(CharSequence base62Str)
base62Str
- 被解码的Base62字符串public static byte[] decode(byte[] base62bytes)
base62bytes
- Base62输入public static String decodeStrInverted(CharSequence source)
source
- 被解码的Base62字符串public static String decodeStrInverted(CharSequence source, Charset charset)
source
- 被解码的Base62字符串charset
- 字符集public static File decodeToFileInverted(CharSequence Base62, File destFile)
Base62
- 被解码的Base62字符串destFile
- 目标文件public static void decodeToStreamInverted(CharSequence base62Str, OutputStream out, boolean isCloseOut)
base62Str
- 被解码的Base62字符串out
- 写出到的流isCloseOut
- 是否关闭输出流public static byte[] decodeInverted(CharSequence base62Str)
base62Str
- 被解码的Base62字符串public static byte[] decodeInverted(byte[] base62bytes)
base62bytes
- Base62输入Copyright © 2024. All rights reserved.