public class Base64Decoder extends ByteArrayDecoder
This class decodes a base64 string as byte array.
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
The encoding name as constant.
|
Constructor and Description |
---|
Base64Decoder()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String data)
Return the base64 string decoded as byte array.
|
boolean |
supports(String encoding)
Return
true if the encoding is base64 (case insensitive). |
forEncoding
public static final String TYPE
The encoding name as constant.
public boolean supports(String encoding)
Return true
if the encoding
is base64 (case insensitive).
supports
in class ByteArrayDecoder
encoding
- the encoding name to check.true
if the name is base64.public byte[] decode(String data)
Return the base64 string decoded as byte array.
decode
in class ByteArrayDecoder
data
- the string to encode.Copyright © 2020 sw4j.org. All rights reserved.