Class Tools


  • public class Tools
    extends java.lang.Object
    A Tools class containing generally useful, miscellaneous static methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      Tools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isInArray​(java.lang.String s, java.lang.String[] list)
      Is the string one of the ones in the array?
      static java.lang.String toBase64​(byte[] b)
      To base 64 string.
      • Methods inherited from class java.lang.Object

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

      • Tools

        public Tools()
    • Method Detail

      • isInArray

        public static boolean isInArray​(java.lang.String s,
                                        java.lang.String[] list)
        Is the string one of the ones in the array?
        Parameters:
        s - the s
        list - the list
        Returns:
        the boolean
      • toBase64

        public static java.lang.String toBase64​(byte[] b)
        To base 64 string.
        Parameters:
        b - the b
        Returns:
        the string