32 * This class implements a BASE64 Character decoder as specified in RFC1521. 33 34 * This RFC is part of the MIME specification which is published by the 35 * Internet Engineering Task Force (IETF). Unlike some other encoding 36 * schemes there is nothing in this encoding that tells the decoder 37 * where a buffer starts or stops, so to use it you will need to isolate 38 * your encoded data into a single chunk and then feed them this decoder. 39 * The simplest way to do that is to read all of the encoded data into a 40 * string and then use: 41 *
42 * byte mydata[]; 43 * BASE64Decoder base64 = new BASE64Decoder(); 44 45 * mydata = base64.decodeBuffer(bufferString); 46 *
47 * This will decode the String in
bufferString and give you an array 48 * of bytes in the array
myData. 49 50 * On errors, this class throws a CEFormatException with the following detail 51 * strings: 52 *
53 * "BASE64Decoder: Not enough bytes for an atom." 54 *
55 56 * @author Chuck McManis 57 * @see CharacterEncoder 58 * @see BASE64Decoder 59