Class Base64Util


  • public final class Base64Util
    extends java.lang.Object
    Base64 encodes Strings. This utility is only necessary because the mechanism to do this changed in Java 8 and the original method was removed in Java 9.
    Since:
    2.12.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Base64.Encoder ENCODER  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Base64Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(java.lang.String str)
      Deprecated.
      since 2.22.0, use Base64 instead.
      • Methods inherited from class java.lang.Object

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

      • ENCODER

        private static final java.util.Base64.Encoder ENCODER
    • Constructor Detail

      • Base64Util

        private Base64Util()
    • Method Detail

      • encode

        @Deprecated
        public static java.lang.String encode​(java.lang.String str)
        Deprecated.
        since 2.22.0, use Base64 instead.
        This method does not specify an encoding for the str parameter and should not be used.