|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectBase64
public class Base64
Utility class that decodes Base64 data.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
private static int decodeChar(char c)
c
- The character to decode
private 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=")
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |