Package gw.util

Class Base64Util


  • public class Base64Util
    extends Object
    • 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
    • Constructor Detail

      • Base64Util

        public Base64Util()
    • Method Detail

      • encode

        public static String encode​(byte[] bytes)
      • encodeAsBytes

        public static byte[] encodeAsBytes​(byte[] bytes)
      • decode

        public static byte[] decode​(String encodedString)
      • isBase64

        public static boolean isBase64​(String s)