public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and 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.
|
public static void writeFile(byte[] data, java.io.File outFile) throws java.io.IOException
data
- byte arrayoutFile
- output filejava.io.IOException
public static java.lang.String getConstantName(java.lang.Object value, java.lang.Class c)
value
- the constant valuec
- type of class or interface