Package gw.util

Class Base64Util


  • public class Base64Util
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  Base64Util.Base64  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENCODING
      The Base64 algorithm converts 3 8-bit bytes into 4 6-bit bytes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] decode​(java.lang.String encodedString)  
      static java.lang.String encode​(byte[] bytes)  
      static byte[] encodeAsBytes​(byte[] bytes)  
      static boolean isBase64​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ENCODING

        public static final java.lang.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 java.lang.String encode​(byte[] bytes)
      • encodeAsBytes

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

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

        public static boolean isBase64​(java.lang.String s)