public class BASE64Decoder extends CharacterDecoder
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
| 构造器和说明 |
|---|
BASE64Decoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
bytesPerAtom()
This class has 4 bytes per atom
|
protected int |
bytesPerLine()
Any multiple of 4 will do, 72 might be common
|
protected void |
decodeAtom(PushbackInputStream inStream,
OutputStream outStream,
int rem)
103 * Decode one BASE64 atom into 1, 2, or 3 bytes of data.
104
|
decodeBuffer, decodeBuffer, decodeBuffer, decodeBufferPrefix, decodeBufferSuffix, decodeBufferToByteBuffer, decodeBufferToByteBuffer, decodeLinePrefix, decodeLineSuffix, readFullyprotected int bytesPerAtom()
bytesPerAtom 在类中 CharacterDecoderprotected int bytesPerLine()
bytesPerLine 在类中 CharacterDecoderprotected void decodeAtom(PushbackInputStream inStream, OutputStream outStream, int rem) throws IOException
decodeAtom 在类中 CharacterDecoderIOExceptionCopyright © 2017. All rights reserved.