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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.reflect.Method encodeMethod  
      private static java.lang.Object encoder  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Base64Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(java.lang.String str)  
      • Methods inherited from class java.lang.Object

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

      • encodeMethod

        private static java.lang.reflect.Method encodeMethod
      • encoder

        private static java.lang.Object encoder
    • Constructor Detail

      • Base64Util

        private Base64Util()
    • Method Detail

      • encode

        public static java.lang.String encode​(java.lang.String str)