Class Utils

java.lang.Object
net.sourceforge.tess4j.util.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • writeFile

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

      public static String getConstantName(Object value, 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