Package gw.util
Class Base64Util
- java.lang.Object
-
- gw.util.Base64Util
-
public class Base64Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Base64Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(String encodedString)
static String
encode(byte[] bytes)
static byte[]
encodeAsBytes(byte[] bytes)
static boolean
isBase64(String s)
-
-
-
Field Detail
-
ENCODING
public static final String ENCODING
The Base64 algorithm converts 3 8-bit bytes into 4 6-bit bytes. The Base 64 alphabet consists of 65 6-bit values, all of which fall within the US-ASCII (7-bit) character encoding. See http://www.freesoft.org/CIE/RFC/2065/56.htm for details. All Java implementations are required to support this encoding. See java.lang documentation for details.- See Also:
- Constant Field Values
-
-