public class BASE64Decoder extends CharacterDecoder
byte mydata[];
BASE64Decoder base64 = new BASE64Decoder();
mydata = base64.decodeBuffer(bufferString);
This will decode the String in bufferString and give you an array
of bytes in the array myData.
On errors, this class throws a CEFormatException with the following detail
strings:
"BASE64Decoder: Not enough bytes for an atom."
CharacterEncoder,
BASE64Decoder| Constructor and Description |
|---|
BASE64Decoder() |
| Modifier and Type | Method and Description |
|---|---|
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(java.io.PushbackInputStream inStream,
java.io.OutputStream outStream,
int rem)
Decode one BASE64 atom into 1, 2, or 3 bytes of data.
|
decodeBuffer, decodeBuffer, decodeBuffer, decodeBufferPrefix, decodeBufferSuffix, decodeBufferToByteBuffer, decodeBufferToByteBuffer, decodeLinePrefix, decodeLineSuffix, readFullyprotected int bytesPerAtom()
bytesPerAtom in class CharacterDecoderprotected int bytesPerLine()
bytesPerLine in class CharacterDecoderprotected void decodeAtom(java.io.PushbackInputStream inStream,
java.io.OutputStream outStream,
int rem)
throws java.io.IOException
decodeAtom in class CharacterDecoderjava.io.IOExceptionCopyright © 2020. All Rights Reserved.