public final class Base64Decoder extends Object
Constructor and Description |
---|
Base64Decoder()
Construct a default Base64Decoder waiting on calls to its translate()
method.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String str)
Decode given string into a decoded byte array.
|
byte[] |
getByteArray()
Get all decoded octets as byte array.
|
void |
translate(String string)
Translate every base64 character from given string into a sextet byte value
by using above translation array.
|
public Base64Decoder()
public static byte[] decode(String str)
str
- Base64 String to be decoded.public void translate(String string)
string
- Base64 String to be decoded.public byte[] getByteArray()
Copyright © 2018. All rights reserved.