Package gw.util

Class Base64Util

java.lang.Object
gw.util.Base64Util

public class Base64Util extends Object
  • Field Details

    • 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:
  • Constructor Details

    • Base64Util

      public Base64Util()
  • Method Details

    • 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)