public class Base64
extends Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
private static String |
decodeBits(int bits1,
int pos1,
int count1,
int bits2,
int pos2,
int count2)
Combines bits from two different bytes into a single character.
|
private static int |
decodeChar(char c)
Given a character in the Base64 set, figure out the decimal
equivalent.
|
private static String |
decodeQuantum(String quantum)
Decodes a 4-character Base64 'quantum' into a 3-character string.
|
static String |
decodeString(String base64)
Decodes a full Base64 string to the corresponding normal string.
|
private static int decodeChar(char c)
c
- The character to decodeprivate static String decodeBits(int bits1, int pos1, int count1, int bits2, int pos2, int count2)
private static String decodeQuantum(String quantum)
public static String decodeString(String base64)
base64
- The base64 string to decode (e.g. "HX1+9/6fE97=")