@Deprecated
public class Base64Codec
extends java.lang.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.
| Modifier and Type | Field and Description |
|---|---|
private static int |
BYTES_PER_ENCODED_BLOCK
Deprecated.
|
private static int |
BYTES_PER_UNENCODED_BLOCK
Deprecated.
|
private static int[] |
DecodeTable
Deprecated.
|
private static byte[] |
EncodeTable
Deprecated.
This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet"
equivalents as specified in Table 1 of RFC 2045.
|
private static byte |
PAD
Deprecated.
padding char
|
private static int |
SixBitMask
Deprecated.
Mask used to extract 6 bits, used when encoding
|
| Constructor and Description |
|---|
Base64Codec()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(java.lang.String s)
Deprecated.
Translates the specified Base64 string into a byte array.
|
java.lang.String |
encode(byte[] in)
Deprecated.
Translates the specified byte array into Base64 string.
|
private static final int BYTES_PER_UNENCODED_BLOCK
private static final int BYTES_PER_ENCODED_BLOCK
private static final int SixBitMask
private static final byte PAD
private static final byte[] EncodeTable
private static final int[] DecodeTable
public byte[] decode(java.lang.String s)
s - the Base64 string (not null)public java.lang.String encode(byte[] in)
in - the byte array (not null)