Class Utils


  • public class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      Modifier and Type Method Description
      static java.lang.String getConstantName​(java.lang.Object value, java.lang.Class c)
      Gets user-friendly name of the public static final constant defined in a class or an interface for display purpose.
      static void writeFile​(byte[] data, java.io.File outFile)
      Writes byte array to file.
      • Methods inherited from class java.lang.Object

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

      • Utils

        public Utils()
    • Method Detail

      • writeFile

        public static void writeFile​(byte[] data,
                                     java.io.File outFile)
                              throws java.io.IOException
        Writes byte array to file.
        Parameters:
        data - byte array
        outFile - output file
        Throws:
        java.io.IOException
      • getConstantName

        public static java.lang.String getConstantName​(java.lang.Object value,
                                                       java.lang.Class c)
        Gets user-friendly name of the public static final constant defined in a class or an interface for display purpose.
        Parameters:
        value - the constant value
        c - type of class or interface
        Returns:
        name