Package org.teiid.core.util
Class Base64
- java.lang.Object
-
- org.teiid.core.util.Base64
-
public class Base64 extends Object
Encodes and decodes to and from Base64 notation.
-
-
Constructor Summary
Constructors Constructor Description Base64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(CharSequence s)
Decodes data from Base64 notation.static byte[]
decodeUrlSafe(CharSequence data)
static String
encodeBytes(byte[] source)
Encodes a byte array into Base64 notation.static String
encodeUrlSafe(byte[] data)
-
-
-
Method Detail
-
encodeBytes
public static String encodeBytes(byte[] source)
Encodes a byte array into Base64 notation.- Parameters:
source
- The data to convert- Since:
- 1.4
-
decode
public static byte[] decode(CharSequence s)
Decodes data from Base64 notation.- Parameters:
s
- the string to decode- Returns:
- the decoded data
- Since:
- 1.4
-
encodeUrlSafe
public static String encodeUrlSafe(byte[] data)
-
decodeUrlSafe
public static byte[] decodeUrlSafe(CharSequence data)
-
-