public class Base64 extends Object
构造器和说明 |
---|
Base64() |
限定符和类型 | 方法和说明 |
---|---|
static int |
_printBase64Binary(byte[] input,
int offset,
int len,
char[] buf,
int ptr)
Encodes a byte array into a char array by doing base64 encoding.
|
static char |
encode(int i) |
static byte[] |
fromBase64String(String text) |
static String |
toBase64String(byte[] binaryData) |
static String |
toBase64String(byte[] input,
int offset,
int len) |
public static char encode(int i)
public static int _printBase64Binary(byte[] input, int offset, int len, char[] buf, int ptr)
ptr+((len+2)/3)*4
, which is the new offset
in the output buffer where the further bytes should be placed.public static String toBase64String(byte[] input, int offset, int len)
public static String toBase64String(byte[] binaryData)
public static byte[] fromBase64String(String text)
Copyright © 2018. All Rights Reserved.