Package one.nio.util
Class Base64
java.lang.Object
one.nio.util.Base64
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]decode(byte[] s) static byte[]decode(byte[] s, int len) static byte[]decodeFromChars(char[] s) static byte[]decodeFromChars(char[] s, int len) static byte[]encode(byte[] s) static voidencode(byte[] s, byte[] result, int p, byte[] table) static char[]encodeToChars(byte[] s) static voidencodeToChars(byte[] s, char[] result, int p, byte[] table) static byte[]encodeUrl(byte[] s) static char[]encodeUrlToChars(byte[] s)
-
Field Details
-
DEFAULT_TABLE
public static final byte[] DEFAULT_TABLE -
URL_TABLE
public static final byte[] URL_TABLE
-
-
Constructor Details
-
Base64
public Base64()
-
-
Method Details
-
encode
public static byte[] encode(byte[] s) -
encodeUrl
public static byte[] encodeUrl(byte[] s) -
encode
public static void encode(byte[] s, byte[] result, int p, byte[] table) -
encodeToChars
public static char[] encodeToChars(byte[] s) -
encodeUrlToChars
public static char[] encodeUrlToChars(byte[] s) -
encodeToChars
public static void encodeToChars(byte[] s, char[] result, int p, byte[] table) -
decode
public static byte[] decode(byte[] s) -
decode
public static byte[] decode(byte[] s, int len) -
decodeFromChars
public static byte[] decodeFromChars(char[] s) -
decodeFromChars
public static byte[] decodeFromChars(char[] s, int len)
-