@Deprecated public class Base64Codec extends Object
Provides Base64 encoding and decoding.
This class implements Base64 encoding
Thanks to Apache Commons project. This class refactored from org.apache.commons.codec.binary
Original Thanks to commons project in ws.apache.org for this code.
Constructor and Description |
---|
Base64Codec()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String s)
Deprecated.
Translates the specified Base64 string into a byte array.
|
String |
encode(byte[] in)
Deprecated.
Translates the specified byte array into Base64 string.
|
public byte[] decode(String s)
s
- the Base64 string (not null)public String encode(byte[] in)
in
- the byte array (not null)