|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ezcontent.base.Utilities
Clase que implementa varios metodos de conveniencia de uso miscelaneo.
Field Summary | |
private static char[] |
HEX_CHARS
|
Constructor Summary | |
Utilities()
|
Method Summary | |
static String |
bits(int number)
Devuelve una cadena que representa los bits del numero recibido. |
static String |
byteSizeDescription(long value)
|
static Constructor |
getConstructorForClassWithParameters(Class aClass,
Object[] parms)
|
static Locale |
getLocale(String path)
Determina el Locale a partir del nombre de un archivo properties. |
static Method |
getMethodForClassWithParameters(Class aClass,
Object[] parms)
|
static byte[] |
hexDecode(String hex)
Decodifica una cadena hexadecimal a un arreglo de bytes. |
static String |
hexEncode(byte[] buffer)
Codifica un arreglo de bytes como una cadena hexadecimal. |
static String |
stringWithContentsOfFile(String path)
Lee un archivo de texto y devuelve su contenido completo como una cadena. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static char[] HEX_CHARS
Constructor Detail |
public Utilities()
Method Detail |
public static Constructor getConstructorForClassWithParameters(Class aClass, Object[] parms)
public static Method getMethodForClassWithParameters(Class aClass, Object[] parms)
public static String hexEncode(byte[] buffer)
public static byte[] hexDecode(String hex)
public static String stringWithContentsOfFile(String path)
path
- La ruta absoluta al archivo.
public static String bits(int number)
public static Locale getLocale(String path)
public static String byteSizeDescription(long value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |