|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.util.Base64
Base64 codec.
Field Summary | |
private static java.lang.String |
base64
The characters for base64 encoded strings |
private static java.lang.String |
hex16
The characters for hex encoded strings |
private static byte |
pad
The pad character for the final chunk |
Constructor Summary | |
private |
Base64()
Constructor for the Base64 object |
Method Summary | |
private static int |
decodeChunk(byte[] input,
byte[] output)
Decode 4 bytes of printable ASCII text into up to 3 bytes of binary data. |
private static byte[] |
encodeChunk(byte[] input,
int len)
Encode up to 3 bytes of binary data as 4 bytes of printable ASCII text. |
static java.lang.String |
toBase64(byte[] bin)
Converts an array of binary data into a String in Base64 encoding. |
static byte[] |
toBinary(java.lang.String toconv)
Converty a String in Base64 encoding into binary data. |
static int |
toBinary(java.lang.String toconv,
byte[] target)
Convert a String in Base64 encoding into binary data in the given array. |
static java.lang.String |
toHex16(byte[] bin)
Converts an array of binary data into a String in Hex16 encoding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String base64
private static final byte pad
private static final java.lang.String hex16
Constructor Detail |
private Base64()
Method Detail |
private static final byte[] encodeChunk(byte[] input, int len)
input
- A 3-byte long array of input.len
- The number of bytes (1, 2, or 3) that are significant in the input.
private static final int decodeChunk(byte[] input, byte[] output)
input
- A 4-byte long array of input bytes.output
- A 3-byte long array in which up to 3 bytes of decoded output will be stored.
public static final java.lang.String toBase64(byte[] bin)
bin
- The bytes to be converted into a base64 encoded equivalent
public static final java.lang.String toHex16(byte[] bin)
bin
- The bytes to be converted into a hex16 encoded equivalent
public static final int toBinary(java.lang.String toconv, byte[] target)
toconv
- The String to be converted from base64 to real bytestarget
- The target space for the bytes
public static final byte[] toBinary(java.lang.String toconv)
toconv
- The String to be converted from base64 to real bytes
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |