Package net.sourceforge.tess4j.util
Class Utils
- java.lang.Object
-
- net.sourceforge.tess4j.util.Utils
-
public class Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
Modifier and Type Method Description static java.lang.StringgetConstantName(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 voidwriteFile(byte[] data, java.io.File outFile)Writes byte array to file.
-
-
-
Method Detail
-
writeFile
public static void writeFile(byte[] data, java.io.File outFile) throws java.io.IOExceptionWrites byte array to file.- Parameters:
data- byte arrayoutFile- 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 valuec- type of class or interface- Returns:
- name
-
-